diff options
author | Daniel Friesel <derf@finalrewind.org> | 2022-10-17 09:50:39 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2022-10-17 09:50:39 +0200 |
commit | b27d67d4894bfb6318efd6b11f35142f55c12b4d (patch) | |
tree | 17f25d27cb04006920117ca4f7d3f6128364f987 | |
parent | 75a7a70677a44d67af498f05773bc172d5092393 (diff) |
Message: Add TO_JSON method
-rw-r--r-- | lib/Travel/Status/DE/HAFAS/Message.pm | 6 |
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__ |