From c4cc115ec6434b7245a710ecba99dc11d16ae1d1 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 29 Nov 2011 15:42:54 +0100 Subject: add tests for XML parsing --- lib/Travel/Routing/DE/VRR/Route/Part.pm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/Travel/Routing/DE/VRR/Route') diff --git a/lib/Travel/Routing/DE/VRR/Route/Part.pm b/lib/Travel/Routing/DE/VRR/Route/Part.pm index 5122868..9c35196 100644 --- a/lib/Travel/Routing/DE/VRR/Route/Part.pm +++ b/lib/Travel/Routing/DE/VRR/Route/Part.pm @@ -44,6 +44,12 @@ sub extra { return @{ $self->{extra} // [] }; } +sub via { + my ($self) = @_; + + return ${ $self->{via} // [] }; +} + 1; __END__ -- cgit v1.2.3