From 187e17546a8395476a119bf94d50f0c9ef780338 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 13 Jun 2020 09:17:21 +0200 Subject: Result: Add operator accessor --- lib/Travel/Status/DE/HAFAS/Result.pm | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'lib/Travel/Status/DE/HAFAS/Result.pm') diff --git a/lib/Travel/Status/DE/HAFAS/Result.pm b/lib/Travel/Status/DE/HAFAS/Result.pm index fc56091..71f9d1e 100644 --- a/lib/Travel/Status/DE/HAFAS/Result.pm +++ b/lib/Travel/Status/DE/HAFAS/Result.pm @@ -11,8 +11,8 @@ use parent 'Class::Accessor'; our $VERSION = '3.01'; Travel::Status::DE::HAFAS::Result->mk_ro_accessors( - qw(sched_date date sched_datetime datetime info raw_e_delay raw_delay - sched_time time train route_end) + qw(sched_date date sched_datetime datetime info operator raw_e_delay + raw_delay sched_time time train route_end) ); sub new { @@ -279,6 +279,13 @@ Returns the line/train number, for instance "SB16" (bus line SB16), Note that this may not be a number at all: Some transport services also use single-letter characters or words (e.g. "AIR") as line numbers. +=item $result->operator + +Returns the operator responsible for this arrival/departure. Returns undef +if the backend does not provide an operator. + +Note that EBB is the only known backend providing this information. + =item $result->platform Returns the arrival/departure platform. -- cgit v1.2.3