diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2025-03-22 13:24:21 +0100 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2025-03-22 13:24:21 +0100 |
commit | 0a15bea28b62777211496db77c558ec62c7da4e4 (patch) | |
tree | f3e3efacb33cebeea2d512a5a66de78edccae7cc /lib/Travel | |
parent | 30e596e51d8ef45bbc02dc480cfba8bb4d8f2257 (diff) |
Location: TO_JSON: Always provide route (lazy accessor)
Diffstat (limited to 'lib/Travel')
-rw-r--r-- | lib/Travel/Status/DE/DBRIS/Journey.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Travel/Status/DE/DBRIS/Journey.pm b/lib/Travel/Status/DE/DBRIS/Journey.pm index 43f2607..1549e8a 100644 --- a/lib/Travel/Status/DE/DBRIS/Journey.pm +++ b/lib/Travel/Status/DE/DBRIS/Journey.pm @@ -78,6 +78,9 @@ sub messages { sub TO_JSON { my ($self) = @_; + # transform raw_route into route (lazy accessor) + $self->route; + my $ret = { %{$self} }; delete $ret->{strptime_obj}; |