NAME
Travel::Status::DE::HAFAS::Message - An arrival/departure-related message.
SYNOPSIS
if ($message->lead) {
printf("%s: %s\n", $message->header, $message->lead);
}
else {
say $message->header;
}
VERSION
version 4.00
DESCRIPTION
Travel::Status::DE::HAFAS::Message describes a message belonging to an arrival or departure. Messages may refer to planned schedule changes due to construction work, the expected passenger volume, or similar.
METHODS
ACCESSORS
- $message->header
-
Message header. May be a concise single-sentence summary or a mostly useless string such as "Information". Does not contain newlines.
- $message->lead
-
Detailed message content. Does not contain newlines.
- $message->ref_count
-
Counter indicating how often this message is used by the requested arrivals/departures. ref_count is an integer between 1 and the number of results. If ref_count is 1, it is referenced by a single result only.
DIAGNOSTICS
None.
DEPENDENCIES
BUGS AND LIMITATIONS
None known.
SEE ALSO
Travel::Status::DE::HAFAS(3pm).
AUTHOR
Copyright (C) 2020-2022 by Daniel Friesel <derf@finalrewind.org>
LICENSE
This module is licensed under the same terms as Perl itself.