From 7aca2847ff7ec5612451dd9cc672f03b70251419 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 3 Dec 2011 15:18:56 +0100 Subject: documentation: prefer ->line over ->train --- Changelog | 2 ++ lib/Travel/Status/DE/DeutscheBahn.pm | 5 +++-- lib/Travel/Status/DE/DeutscheBahn/Result.pm | 6 +++--- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Changelog b/Changelog index cfd1e70..aac3ffc 100644 --- a/Changelog +++ b/Changelog @@ -2,6 +2,8 @@ git HEAD * Detect ambiguous input errors (available via errstr) * Add language switch for additional information (german/english) + + [Travel::Status::DE::DeutscheBahn::Result] * Result: Add line (== train) and date accessors [db-ris] diff --git a/lib/Travel/Status/DE/DeutscheBahn.pm b/lib/Travel/Status/DE/DeutscheBahn.pm index 780d05d..8377894 100644 --- a/lib/Travel/Status/DE/DeutscheBahn.pm +++ b/lib/Travel/Status/DE/DeutscheBahn.pm @@ -274,7 +274,7 @@ arrival/departure monitor printf( "At %s: %s to %s from platform %s\n", $departure->time, - $departure->train, + $departure->line, $departure->destination, $departure->platform, ); @@ -310,7 +310,8 @@ Supported I are: =item B => I -The train station to report for, e.g. "Essen HBf". Mandatory. +The train station to report for, e.g. "Essen HBf" or +"Alfredusbad, Essen (Ruhr)". Mandatory. =item B => I
.I.I diff --git a/lib/Travel/Status/DE/DeutscheBahn/Result.pm b/lib/Travel/Status/DE/DeutscheBahn/Result.pm index 4860810..af858c6 100644 --- a/lib/Travel/Status/DE/DeutscheBahn/Result.pm +++ b/lib/Travel/Status/DE/DeutscheBahn/Result.pm @@ -144,7 +144,7 @@ arrival/departure received by Travel::Status::DE::DeutscheBahn printf( "At %s: %s to %s from platform %s\n", $departure->time, - $departure->train, + $departure->line, $departure->destination, $departure->platform, ); @@ -155,7 +155,7 @@ arrival/departure received by Travel::Status::DE::DeutscheBahn printf( "At %s: %s from %s on platform %s\n", $arrival->time, - $arrival->train, + $arrival->line, $arrival->origin, $arrival->platform, ); @@ -194,7 +194,7 @@ delayed. May be an empty string if no (useful) information is available. =item $result->train -Returns the line / train name, either in a format like "S 1" (S-Bahn line 1) +Returns the line name, either in a format like "S 1" (S-Bahn line 1) or "RE 10111" (RegionalExpress train 10111, no line information). =item $result->platform -- cgit v1.2.3