summaryrefslogtreecommitdiff
path: root/lib/Travel
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2022-10-09 08:37:20 +0200
committerDaniel Friesel <derf@finalrewind.org>2022-10-09 08:37:20 +0200
commit2a4e84102440154d0320778bad870046b226d703 (patch)
treed13fb920e082b3a4fdc6429442715eafc9ecffdb /lib/Travel
parent34edf620bce916d71c8413041dea447a83acb76c (diff)
rename Result to Journey (in line with HAFAS naming convention)
Diffstat (limited to 'lib/Travel')
-rw-r--r--lib/Travel/Status/DE/HAFAS.pm8
-rw-r--r--lib/Travel/Status/DE/HAFAS/Journey.pm (renamed from lib/Travel/Status/DE/HAFAS/Result.pm)8
2 files changed, 8 insertions, 8 deletions
diff --git a/lib/Travel/Status/DE/HAFAS.pm b/lib/Travel/Status/DE/HAFAS.pm
index 04d4e81..769ff39 100644
--- a/lib/Travel/Status/DE/HAFAS.pm
+++ b/lib/Travel/Status/DE/HAFAS.pm
@@ -17,7 +17,7 @@ use List::Util qw(any);
use LWP::UserAgent;
use POSIX qw(strftime);
use Travel::Status::DE::HAFAS::Message;
-use Travel::Status::DE::HAFAS::Result;
+use Travel::Status::DE::HAFAS::Journey;
use Travel::Status::DE::HAFAS::StopFinder;
our $VERSION = '3.01';
@@ -568,7 +568,7 @@ sub parse_mgate {
for my $result (@jnyL) {
push(
@{ $self->{results} },
- Travel::Status::DE::HAFAS::Result->new(
+ Travel::Status::DE::HAFAS::Journey->new(
common => $self->{raw_json}{svcResL}[0]{res}{common},
journey => $result,
hafas => $self,
@@ -738,7 +738,7 @@ describing it. If no error occurred, returns undef.
=item $status->results
Returns a list of arrivals/departures. Each list element is a
-Travel::Status::DE::HAFAS::Result(3pm) object.
+Travel::Status::DE::HAFAS::Journey(3pm) object.
If no matching results were found or the parser / http request failed, returns
undef.
@@ -800,7 +800,7 @@ The non-default services (anything other than DB) are not well tested.
=head1 SEE ALSO
-Travel::Status::DE::HAFAS::Result(3pm), Travel::Status::DE::HAFAS::StopFinder(3pm).
+Travel::Status::DE::HAFAS::Journey(3pm), Travel::Status::DE::HAFAS::StopFinder(3pm).
=head1 AUTHOR
diff --git a/lib/Travel/Status/DE/HAFAS/Result.pm b/lib/Travel/Status/DE/HAFAS/Journey.pm
index f1e376b..31675ba 100644
--- a/lib/Travel/Status/DE/HAFAS/Result.pm
+++ b/lib/Travel/Status/DE/HAFAS/Journey.pm
@@ -1,4 +1,4 @@
-package Travel::Status::DE::HAFAS::Result;
+package Travel::Status::DE::HAFAS::Journey;
use strict;
use warnings;
@@ -10,7 +10,7 @@ use parent 'Class::Accessor';
our $VERSION = '3.01';
-Travel::Status::DE::HAFAS::Result->mk_ro_accessors(
+Travel::Status::DE::HAFAS::Journey->mk_ro_accessors(
qw(sched_date date sched_datetime datetime info is_cancelled operator delay
sched_time time train route route_end)
);
@@ -256,7 +256,7 @@ __END__
=head1 NAME
-Travel::Status::DE::HAFAS::Result - Information about a single
+Travel::Status::DE::HAFAS::Journey - Information about a single
arrival/departure received by Travel::Status::DE::HAFAS
=head1 SYNOPSIS
@@ -288,7 +288,7 @@ version 3.01
=head1 DESCRIPTION
-Travel::Status::DE::HAFAS::Result describes a single arrival/departure
+Travel::Status::DE::HAFAS::Journey describes a single arrival/departure
as obtained by Travel::Status::DE::HAFAS. It contains information about
the platform, time, route and more.