From 91d1c93160cfd34bb667ca4ce1a9c380b5d6eea1 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 22 Dec 2013 15:17:54 +0100 Subject: update documentation --- lib/Travel/Status/DE/ASEAG.pm | 6 ------ lib/Travel/Status/DE/URA.pm | 18 ++++++++++-------- lib/Travel/Status/DE/URA/Result.pm | 4 +++- 3 files changed, 13 insertions(+), 15 deletions(-) (limited to 'lib/Travel/Status/DE') diff --git a/lib/Travel/Status/DE/ASEAG.pm b/lib/Travel/Status/DE/ASEAG.pm index 3ef529a..83bb6b1 100644 --- a/lib/Travel/Status/DE/ASEAG.pm +++ b/lib/Travel/Status/DE/ASEAG.pm @@ -75,12 +75,6 @@ None. =over -=item * Class::Accessor(3pm) - -=item * DateTime(3pm) - -=item * LWP::UserAgent(3pm) - =item * Travel::Status::DE::URA(3pm) =back diff --git a/lib/Travel/Status/DE/URA.pm b/lib/Travel/Status/DE/URA.pm index 5dbaff6..8ea404b 100644 --- a/lib/Travel/Status/DE/URA.pm +++ b/lib/Travel/Status/DE/URA.pm @@ -276,29 +276,29 @@ given place in real-time. Schedule information is not included. Requests the departures as specified by I and returns a new Travel::Status::DE::URA object. -Accepted parameters (all are optional): +The following two parameters are mandatory: =over -=item B => I (default C<< http://ivu.aseag.de/interfaces/ura >>) +=item B => I The URA base url. -=item B => I (default C<< 1 >>) +=item B => I The version, may be any string. =back -The request URL is I/instant_VI, so by default -C<< http://ivu.aseag.de/interfaces/ura/instant_V1 >>. +The request URL is I/instant_VI, so for +C<< http://ivu.aseag.de/interfaces/ura >>, C<< 1 >> this module will point +requests to C<< http://ivu.aseag.de/interfaces/ura/instant_V1 >>. Additionally, all options supported by C<< $status->results >> may be specified here, causing them to be used as defaults. Note that while they may be overridden later, they may limit the set of available departures requested from the server. - =item $status->errstr In case of an HTTP request error, returns a string describing it. If none @@ -324,7 +324,7 @@ I (if set). =item B => I (default 1) -A true value allows fuzzy matching for the I set above, a false one +A true value allows fuzzy matching for the stop I, a false one requires an exact string match. =item B => I (default 1) @@ -359,6 +359,8 @@ None. =item * DateTime(3pm) +=item * List::MoreUtils(3pm) + =item * LWP::UserAgent(3pm) =back @@ -369,7 +371,7 @@ Many. =head1 SEE ALSO -aseag-m(1), Travel::Status::DE::URA::Result(3pm). +Travel::Status::DE::URA::Result(3pm). =head1 AUTHOR diff --git a/lib/Travel/Status/DE/URA/Result.pm b/lib/Travel/Status/DE/URA/Result.pm index dbf619f..f8eddcd 100644 --- a/lib/Travel/Status/DE/URA/Result.pm +++ b/lib/Travel/Status/DE/URA/Result.pm @@ -94,10 +94,12 @@ The number of the line. =item $departure->route_timetable +If the B method of Travel::Status::DE::URA(3pm) was called with +B => true: Returns an arrayref of arrayrefs describing the entire route. I.e. C<< [[$time1, $stop1], [$time2, $stop2], ...] >>. The times are DateTime::Duration(3pm) objects, the stops are only names, -not IDs (subject to change). +not IDs (subject to change). Returns an empty arrayref otherwise. =item $departure->stop -- cgit v1.2.3