diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Travel/Status/DE/EFA/Trip.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Travel/Status/DE/EFA/Trip.pm b/lib/Travel/Status/DE/EFA/Trip.pm index e6c1b8e..37e5284 100644 --- a/lib/Travel/Status/DE/EFA/Trip.pm +++ b/lib/Travel/Status/DE/EFA/Trip.pm @@ -109,6 +109,9 @@ sub route { sub TO_JSON { my ($self) = @_; + # lazy loading + $self->route; + my $ret = { %{$self} }; delete $ret->{strptime_obj}; |