From 4a9e26db7db0471c3ca731ff18fede9b7485f81e Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 25 Sep 2013 23:30:08 +0200 Subject: Document TO_JSON method --- Changelog | 2 ++ lib/Travel/Status/DE/VRR/Line.pm | 4 ++++ lib/Travel/Status/DE/VRR/Result.pm | 4 ++++ 3 files changed, 10 insertions(+) diff --git a/Changelog b/Changelog index 520276f..a2cb0d7 100644 --- a/Changelog +++ b/Changelog @@ -1,6 +1,8 @@ Travel::Status::DE::VRR 1.03 - Tue Sep 17 2013 * Disable smartmatch warnings on perl >= 5.018 + * Allow Travel::Status::DE::VRR::Line and TraveL::Status::DE::VRR::Result + to be serialized to JSON (via TO_JSON method) Travel::Status::DE::VRR 1.02 - Wed Apr 10 2013 diff --git a/lib/Travel/Status/DE/VRR/Line.pm b/lib/Travel/Status/DE/VRR/Line.pm index 5c12980..f649a92 100644 --- a/lib/Travel/Status/DE/VRR/Line.pm +++ b/lib/Travel/Status/DE/VRR/Line.pm @@ -101,6 +101,10 @@ When / how long above information is valid. Returns a new Travel::Status::DE::VRR::Line object. You should not need to call this. +=item $line->TO_JSON + +Allows the object data to be serialized to JSON. + =back =head1 DIAGNOSTICS diff --git a/lib/Travel/Status/DE/VRR/Result.pm b/lib/Travel/Status/DE/VRR/Result.pm index 00f30c0..e1ebee5 100644 --- a/lib/Travel/Status/DE/VRR/Result.pm +++ b/lib/Travel/Status/DE/VRR/Result.pm @@ -149,6 +149,10 @@ field. See L. Returns a new Travel::Status::DE::VRR::Result object. You should not need to call this. +=item $departure->TO_JSON + +Allows the object data to be serialized to JSON. + =back =head1 DEPARTURE TYPES -- cgit v1.2.3