summaryrefslogtreecommitdiff
path: root/lib/Travel/Status/DE/VRR.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-11-26 18:10:58 +0100
committerDaniel Friesel <derf@finalrewind.org>2011-11-26 18:10:58 +0100
commite1a7eefbb36126b925e78b9f7acd3ac9a086e85c (patch)
tree153bdb594ce126000e5ffb9848301090dd78ba5b /lib/Travel/Status/DE/VRR.pm
parent1f0fbaad004576a7b9350f0a0994889b46428497 (diff)
VRR.pm / Result.pm: Fix ->lines and ->type documentation
Diffstat (limited to 'lib/Travel/Status/DE/VRR.pm')
-rw-r--r--lib/Travel/Status/DE/VRR.pm11
1 files changed, 9 insertions, 2 deletions
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