Unverified Commit 2a4e8410 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

rename Result to Journey (in line with HAFAS naming convention)

parent 34edf620
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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

+4 −4
Original line number Diff line number Diff line
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.