diff options
author | Daniel Friesel <derf@finalrewind.org> | 2014-01-02 05:41:37 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2014-01-02 05:41:37 +0100 |
commit | ba7a15a58d52b6f737dc574e0a76a58d14883687 (patch) | |
tree | 2701d19ea99d7be3822027ec1a7e31f9fe6a1944 /lib/Travel/Status/DE/IRIS | |
parent | d1b57191186970b3d699cd5b51e9bed4130af3b4 (diff) |
rename Travel::Status::DE::IRIS::{Acronyms -> Stations}
Diffstat (limited to 'lib/Travel/Status/DE/IRIS')
-rw-r--r-- | lib/Travel/Status/DE/IRIS/Stations.pm (renamed from lib/Travel/Status/DE/IRIS/Acronyms.pm) | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/Travel/Status/DE/IRIS/Acronyms.pm b/lib/Travel/Status/DE/IRIS/Stations.pm index 59bdad7..c75984e 100644 --- a/lib/Travel/Status/DE/IRIS/Acronyms.pm +++ b/lib/Travel/Status/DE/IRIS/Stations.pm @@ -1,4 +1,4 @@ -package Travel::Status::DE::IRIS::Acronyms; +package Travel::Status::DE::IRIS::Stations; use strict; use warnings; @@ -9,7 +9,7 @@ use List::MoreUtils qw(firstval); our $VERSION = '0.00'; -my @acronyms = ( +my @stations = ( ['XNTH','`t Harde'], ['YMMBM','6,1/60,3 Bad MGH'], @@ -15096,21 +15096,21 @@ my @acronyms = ( ['XPZR','Zyrardow'], ); -sub get_acronyms { - return @acronyms; +sub get_stations { + return @stations; } -sub get_acronym_by_name { +sub get_station_by_name { my ( $name ) = @_; my $nname = lc($name); - my $actual_match = firstval { $nname eq lc($_->[1]) } @acronyms; + my $actual_match = firstval { $nname eq lc($_->[1]) } @stations; if ($actual_match) { return ($actual_match); } - return ( grep { $_->[1] =~ m{$name}i } @acronyms ); + return ( grep { $_->[1] =~ m{$name}i } @stations ); } 1; |