From 70d7348525e60b23d3001245cb99c10b81bf3955 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 10 Oct 2015 15:44:07 +0200 Subject: documentation --- Changelog | 5 +++++ lib/Travel/Status/DE/HAFAS/Result.pm | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/Changelog b/Changelog index d969ca9..392925c 100644 --- a/Changelog +++ b/Changelog @@ -1,3 +1,8 @@ +git HEAD + + * Result: Fix ->type accessor (was not working for all backends) + * Result: Add ->train_no / ->line_no accessor + Travel::Status::DE::DeutscheBahn 2.00 - Fri Sep 25 2015 * This release is NOT backwards compatible with 1.xx versions diff --git a/lib/Travel/Status/DE/HAFAS/Result.pm b/lib/Travel/Status/DE/HAFAS/Result.pm index 5048f35..dd69e14 100644 --- a/lib/Travel/Status/DE/HAFAS/Result.pm +++ b/lib/Travel/Status/DE/HAFAS/Result.pm @@ -209,6 +209,13 @@ Returns the line name, either in a format like "Bus SB16" (Bus line SB16) or "RE 10111" (RegionalExpress train 10111, no line information). May contain extraneous whitespace characters. +=item $result->line_no + +=item $result->train_no + +Returns the line/train number, for instance "SB16" (bus line SB16), +"11" (Underground train line U 11) or 1011 ("RegionalExpress train 1011"). + =item $result->platform Returns the arrival/departure platform. -- cgit v1.2.3