summaryrefslogtreecommitdiff
path: root/lib/Travel/Status/DE
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Travel/Status/DE')
-rw-r--r--lib/Travel/Status/DE/DeutscheBahn/Result.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Travel/Status/DE/DeutscheBahn/Result.pm b/lib/Travel/Status/DE/DeutscheBahn/Result.pm
index 8e127ae..9c62a71 100644
--- a/lib/Travel/Status/DE/DeutscheBahn/Result.pm
+++ b/lib/Travel/Status/DE/DeutscheBahn/Result.pm
@@ -131,6 +131,12 @@ sub route_timetable {
return @{ $self->{route} };
}
+sub TO_JSON {
+ my ($self) = @_;
+
+ return { %{$self} };
+}
+
1;
__END__