From 7e8258ae6c0cb53cdde02cf48f506eb9f7a29660 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 29 Nov 2011 14:41:18 +0100 Subject: Fix display and parsing of delay connections --- lib/Travel/Routing/DE/VRR/Route/Part.pm | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'lib/Travel/Routing/DE/VRR') diff --git a/lib/Travel/Routing/DE/VRR/Route/Part.pm b/lib/Travel/Routing/DE/VRR/Route/Part.pm index d01260c..e31e713 100644 --- a/lib/Travel/Routing/DE/VRR/Route/Part.pm +++ b/lib/Travel/Routing/DE/VRR/Route/Part.pm @@ -9,8 +9,12 @@ use parent 'Class::Accessor'; our $VERSION = '1.06'; Travel::Routing::DE::VRR::Route::Part->mk_ro_accessors( - qw(arrival_platform arrival_stop arrival_time departure_platform departure_stop departure_time train_line - train_destination) + qw(arrival_platform arrival_stop + arrival_date arrival_time arrival_sdate arrival_stime + delay departure_platform departure_stop + departure_date departure_time departure_sdate departure_stime + train_line train_destination + ) ); sub new { @@ -24,13 +28,14 @@ sub new { sub arrival_stop_and_platform { my ($self) = @_; - return sprintf('%s: %s', $self->get(qw(arrival_stop arrival_platform))); + return sprintf( '%s: %s', $self->get(qw(arrival_stop arrival_platform)) ); } sub departure_stop_and_platform { my ($self) = @_; - return sprintf('%s: %s', $self->get(qw(departure_stop departure_platform))); + return + sprintf( '%s: %s', $self->get(qw(departure_stop departure_platform)) ); } sub extra { -- cgit v1.2.3