summaryrefslogtreecommitdiff
path: root/lib/Travel/Status/DE/VRR/Line.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2013-09-18 21:17:56 +0200
committerDaniel Friesel <derf@finalrewind.org>2013-09-18 21:17:56 +0200
commit0c6b8879c3c91bb2708e0f03f7d1641f760a6624 (patch)
tree7a033329db979e938cfe217cd12f2628a69d6ade /lib/Travel/Status/DE/VRR/Line.pm
parentba3500bdc9a5bb180f2aab99b0da73b55c569c5f (diff)
Add Line->key and JSON export
Diffstat (limited to 'lib/Travel/Status/DE/VRR/Line.pm')
-rw-r--r--lib/Travel/Status/DE/VRR/Line.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Travel/Status/DE/VRR/Line.pm b/lib/Travel/Status/DE/VRR/Line.pm
index 9f7b228..5c12980 100644
--- a/lib/Travel/Status/DE/VRR/Line.pm
+++ b/lib/Travel/Status/DE/VRR/Line.pm
@@ -18,6 +18,13 @@ sub new {
return bless( $ref, $obj );
}
+
+sub TO_JSON {
+ my ($self) = @_;
+
+ return { %{$self} };
+}
+
1;
__END__