From 7e7b087a779daf695dad86b90ce7c91dbae6f2ff Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 4 Aug 2015 19:14:43 +0200 Subject: Line/Result: document mot and mot_name accessors --- lib/Travel/Status/DE/EFA/Line.pm | 10 ++++++++++ lib/Travel/Status/DE/EFA/Result.pm | 10 ++++++++++ 2 files changed, 20 insertions(+) (limited to 'lib/Travel/Status/DE') diff --git a/lib/Travel/Status/DE/EFA/Line.pm b/lib/Travel/Status/DE/EFA/Line.pm index 0f5f090..6ebe477 100644 --- a/lib/Travel/Status/DE/EFA/Line.pm +++ b/lib/Travel/Status/DE/EFA/Line.pm @@ -76,6 +76,16 @@ per actual line. Direction of the line. Name of either the destination stop or one on the way. +=item $line->mot + +Returns the "mode of transport" number for this line. This is usually an +integer between 0 and 11. + +=item $line->mot_name + +Returns the "mode of transport" for this line, for instance "zug", "s-bahn", +"tram" or "sonstige". + =item $line->name Name of the line, e.g. "U11", "SB15", "107". diff --git a/lib/Travel/Status/DE/EFA/Result.pm b/lib/Travel/Status/DE/EFA/Result.pm index bb0243b..325d0a3 100644 --- a/lib/Travel/Status/DE/EFA/Result.pm +++ b/lib/Travel/Status/DE/EFA/Result.pm @@ -198,6 +198,16 @@ The name/number of the line. Travel::Status::DE::EFA::Line(3pm) object describing the departing line in detail. +=item $departure->mot + +Returns the "mode of transport" number. This is usually an integer between 0 +and 11. + +=item $departure->mot_name + +Returns the "mode of transport", for instance "zug", "s-bahn", "tram" or +"sonstige". + =item $departure->platform Departure platform number (may not be a number). -- cgit v1.2.3