From 89e6115bbe2ac3965184fc9f347b0cf2f8c4ba8c Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 19 Apr 2015 11:14:42 +0200 Subject: Result: document wing accessors --- lib/Travel/Status/DE/IRIS/Result.pm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/lib/Travel/Status/DE/IRIS/Result.pm b/lib/Travel/Status/DE/IRIS/Result.pm index ce793ff..80319b5 100644 --- a/lib/Travel/Status/DE/IRIS/Result.pm +++ b/lib/Travel/Status/DE/IRIS/Result.pm @@ -734,6 +734,12 @@ set of actual stops (B) minus the set of scheduled stops DateTime(3pm) object for the arrival date and time. undef if the train starts here. Contains realtime data if available. +=item $result->arrival_wings + +Returns a list of references to Travel::Status::DE::IRIS::Result(3pm) objects +which are coupled to this train on arrival. Returns nothing (false / empty list) +otherwise. + =item $result->canceled_stops Returns stops which are scheduled, but will not be served by this train. @@ -781,6 +787,12 @@ most recent record will be returned. DateTime(3pm) object for the departure date and time. undef if the train ends here. Contains realtime data if available. +=item $result->departure_wings + +Returns a list of references to Travel::Status::DE::IRIS::Result(3pm) objects +which are coupled to this train on departure. Returns nothing (false / empty +list) otherwise. + =item $result->destination Alias for route_end. @@ -809,6 +821,12 @@ the results and indicates it by setting B to a true value. In case of a transfer, B and B are set to the "new" value, the old ones are available in B and B. +=item $result->is_wing + +Returns true if this result is a wing, false otherwise. +A wing is a train which has its own ID and destination, but is currently +coupled to another train and shares all or some of its route. + =item $result->line Train type with line (such as C<< S 1 >>) if available, type with number -- cgit v1.2.3