summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-04-18 16:35:00 +0200
committerDaniel Friesel <derf@finalrewind.org>2016-04-18 16:35:00 +0200
commit77bd89ceaacff18a0737ba96a444fc6b00d35d5c (patch)
tree4df1cf6310fd7a9e5967d2f0a16686a8d02072cc
parent881a13917ef2d03b733f095c866c009487f577b4 (diff)
Result: Add platform accessor (shortcut for stop_indicator)
-rw-r--r--lib/Travel/Status/DE/URA/Result.pm10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/Travel/Status/DE/URA/Result.pm b/lib/Travel/Status/DE/URA/Result.pm
index e638e89..91f2d67 100644
--- a/lib/Travel/Status/DE/URA/Result.pm
+++ b/lib/Travel/Status/DE/URA/Result.pm
@@ -46,6 +46,12 @@ sub date {
return $self->datetime->strftime('%d.%m.%Y');
}
+sub platform {
+ my ($self) = @_;
+
+ return $self->{stop_indicator};
+}
+
sub time {
my ($self) = @_;
@@ -188,6 +194,10 @@ The name of the line.
The number of the line.
+=item $departure->platform
+
+Shortcut for $departure->stop_indicator, see there.
+
=item $departure->route_interesting(I<num_stops>)
If the B<results> method of Travel::Status::DE::URA(3pm) was called with