From e1a7eefbb36126b925e78b9f7acd3ac9a086e85c Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 26 Nov 2011 18:10:58 +0100 Subject: VRR.pm / Result.pm: Fix ->lines and ->type documentation --- lib/Travel/Status/DE/VRR.pm | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'lib/Travel/Status/DE/VRR.pm') diff --git a/lib/Travel/Status/DE/VRR.pm b/lib/Travel/Status/DE/VRR.pm index 4617cbf..5fdef27 100644 --- a/lib/Travel/Status/DE/VRR.pm +++ b/lib/Travel/Status/DE/VRR.pm @@ -300,6 +300,7 @@ sub results { my $info = $e_info->textContent; my $countdown = $e->getAttribute('countdown'); my $delay = $e_info->getAttribute('delay') // 0; + my $type = $e_info->getAttribute('name'); my $platform_is_db = 0; @@ -326,6 +327,7 @@ sub results { delay => $delay, sched_date => $date, sched_time => $time, + type => $type, ) ); } @@ -404,8 +406,13 @@ address / poi / stop name to list departures for. =item $status->errstr -In case of an error in the HTTP requests, returns a string describing it. If -no error occured, returns undef. +In case of en HTTP request or EFA error, returns a string describing it. If +none occured, returns undef. + +=item $status->lines + +Returns a list of Travel::Status::DE::VRR::Line(3pm) objects, each one +describing one line servicing the selected station. =item $status->results -- cgit v1.2.3