summaryrefslogtreecommitdiff
path: root/lib/Travel/Status/DE
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2013-12-23 19:04:19 +0100
committerDaniel Friesel <derf@finalrewind.org>2013-12-23 19:04:19 +0100
commit59c281597e93d9da9e70be7acc7f431194732b2e (patch)
treea3db0dcf46efb30c5e8aeb82594192394d73fd87 /lib/Travel/Status/DE
parent4f5953eaf8b9da117e3d947eb55c7ace1ea3c3d8 (diff)
Add some actual tests
Diffstat (limited to 'lib/Travel/Status/DE')
-rw-r--r--lib/Travel/Status/DE/URA.pm11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/Travel/Status/DE/URA.pm b/lib/Travel/Status/DE/URA.pm
index 5ca1bee..c525ffd 100644
--- a/lib/Travel/Status/DE/URA.pm
+++ b/lib/Travel/Status/DE/URA.pm
@@ -63,7 +63,16 @@ sub new {
sub new_from_raw {
my ( $class, %opt ) = @_;
- my $self = { raw_str => $opt{raw_str}, };
+ my $self = {
+ ura_base => $opt{ura_base},
+ ura_version => $opt{ura_version},
+ full_routes => $opt{full_routes} // 0,
+ fuzzy => $opt{fuzzy} // 1,
+ hide_past => $opt{hide_past} // 1,
+ stop => $opt{stop},
+ via => $opt{via},
+ raw_str => $opt{raw_str}
+ };
bless( $self, $class );