summaryrefslogtreecommitdiff
path: root/lib/Travel/Status
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2022-10-17 09:50:39 +0200
committerDaniel Friesel <derf@finalrewind.org>2022-10-17 09:50:39 +0200
commitb27d67d4894bfb6318efd6b11f35142f55c12b4d (patch)
tree17f25d27cb04006920117ca4f7d3f6128364f987 /lib/Travel/Status
parent75a7a70677a44d67af498f05773bc172d5092393 (diff)
Message: Add TO_JSON method
Diffstat (limited to 'lib/Travel/Status')
-rw-r--r--lib/Travel/Status/DE/HAFAS/Message.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Travel/Status/DE/HAFAS/Message.pm b/lib/Travel/Status/DE/HAFAS/Message.pm
index bfbf0ba..0082cf8 100644
--- a/lib/Travel/Status/DE/HAFAS/Message.pm
+++ b/lib/Travel/Status/DE/HAFAS/Message.pm
@@ -20,6 +20,12 @@ sub new {
return $ref;
}
+sub TO_JSON {
+ my ($self) = @_;
+
+ return { %{$self} };
+}
+
1;
__END__