From 11f8c8b8cf75a2624af7c28f829d1068bcb8f3f7 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 7 Sep 2016 11:31:28 +0200 Subject: rename: Travel::Status::{DE -> GB}::TfL (London is in UK/GB after all) --- lib/Travel/Status/DE/TFL.pm | 96 --------------------------------------------- lib/Travel/Status/GB/TFL.pm | 96 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 96 insertions(+), 96 deletions(-) delete mode 100644 lib/Travel/Status/DE/TFL.pm create mode 100644 lib/Travel/Status/GB/TFL.pm (limited to 'lib/Travel') diff --git a/lib/Travel/Status/DE/TFL.pm b/lib/Travel/Status/DE/TFL.pm deleted file mode 100644 index 2c9b0ec..0000000 --- a/lib/Travel/Status/DE/TFL.pm +++ /dev/null @@ -1,96 +0,0 @@ -package Travel::Status::DE::TFL; - -use strict; -use warnings; -use 5.010; - -no if $] >= 5.018, warnings => 'experimental::smartmatch'; - -our $VERSION = '1.02'; - -use parent 'Travel::Status::DE::URA'; - -sub new { - my ( $class, %opt ) = @_; - - $opt{ura_base} = 'http://countdown.api.tfl.gov.uk/interfaces/ura'; - $opt{ura_version} = '1'; - - return $class->SUPER::new(%opt); -} - -1; - -__END__ - -=head1 NAME - -Travel::Status::DE::TFL - unofficial TFL departure monitor. - -=head1 SYNOPSIS - - use Travel::Status::DE::TFL; - - my $status = Travel::Status::DE::TFL->new( - stop => 'Aachen Bushof' - ); - - for my $d ($status->results) { - printf( - "%s %-5s %25s (in %d min)\n", - $d->time, $d->line, $d->destination, $d->countdown - ); - } - -=head1 VERSION - -version 1.02 - -=head1 DESCRIPTION - -Travel::Status::DE::TFL is an unofficial interface to the TFL realtime -departure monitor. - -=head1 METHODS - -=over - -=item my $status = Travel::Status::DE::TFL->new(I<%opt>) - -Requests the departures as specified by I and returns a new -Travel::Status::DE::TFL object. - -Calls Travel::Status::DE::URA->new with the appropriate B and -B parameters. All I are passed on. - -See Travel::Status::DE::URA(3pm) for the other methods. - -=back - -=head1 DIAGNOSTICS - -None. - -=head1 DEPENDENCIES - -=over - -=item * Travel::Status::DE::URA(3pm) - -=back - -=head1 BUGS AND LIMITATIONS - -Many. - -=head1 SEE ALSO - -tfl-m(1), Travel::Status::DE::URA(3pm). - -=head1 AUTHOR - -Copyright (C) 2013-2015 by Daniel Friesel Ederf@finalrewind.orgE - -=head1 LICENSE - -This module is licensed under the same terms as Perl itself. diff --git a/lib/Travel/Status/GB/TFL.pm b/lib/Travel/Status/GB/TFL.pm new file mode 100644 index 0000000..5aaeebe --- /dev/null +++ b/lib/Travel/Status/GB/TFL.pm @@ -0,0 +1,96 @@ +package Travel::Status::GB::TFL; + +use strict; +use warnings; +use 5.010; + +no if $] >= 5.018, warnings => 'experimental::smartmatch'; + +our $VERSION = '1.02'; + +use parent 'Travel::Status::DE::URA'; + +sub new { + my ( $class, %opt ) = @_; + + $opt{ura_base} = 'http://countdown.api.tfl.gov.uk/interfaces/ura'; + $opt{ura_version} = '1'; + + return $class->SUPER::new(%opt); +} + +1; + +__END__ + +=head1 NAME + +Travel::Status::GB::TFL - unofficial TFL departure monitor. + +=head1 SYNOPSIS + + use Travel::Status::GB::TFL; + + my $status = Travel::Status::GB::TFL->new( + stop => 'Aachen Bushof' + ); + + for my $d ($status->results) { + printf( + "%s %-5s %25s (in %d min)\n", + $d->time, $d->line, $d->destination, $d->countdown + ); + } + +=head1 VERSION + +version 1.02 + +=head1 DESCRIPTION + +Travel::Status::GB::TFL is an unofficial interface to the Transport for London +(TfL) realtime departure monitor. + +=head1 METHODS + +=over + +=item my $status = Travel::Status::GB::TFL->new(I<%opt>) + +Requests the departures as specified by I and returns a new +Travel::Status::GB::TFL object. + +Calls Travel::Status::DE::URA->new with the appropriate B and +B parameters. All I are passed on. + +See Travel::Status::DE::URA(3pm) for the other methods. + +=back + +=head1 DIAGNOSTICS + +None. + +=head1 DEPENDENCIES + +=over + +=item * Travel::Status::DE::URA(3pm) + +=back + +=head1 BUGS AND LIMITATIONS + +Many. + +=head1 SEE ALSO + +tfl-m(1), Travel::Status::DE::URA(3pm). + +=head1 AUTHOR + +Copyright (C) 2013-2015 by Daniel Friesel Ederf@finalrewind.orgE + +=head1 LICENSE + +This module is licensed under the same terms as Perl itself. -- cgit v1.2.3