Commit 7aca2847 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

documentation: prefer ->line over ->train

parent ab020b55
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2,6 +2,8 @@ git HEAD

    * Detect ambiguous input errors (available via errstr)
    * Add language switch for additional information (german/english)

    [Travel::Status::DE::DeutscheBahn::Result]
    * Result: Add line (== train) and date accessors

    [db-ris]
+3 −2
Original line number Diff line number Diff line
@@ -274,7 +274,7 @@ arrival/departure monitor
		printf(
			"At %s: %s to %s from platform %s\n",
			$departure->time,
			$departure->train,
			$departure->line,
			$departure->destination,
			$departure->platform,
		);
@@ -310,7 +310,8 @@ Supported I<opts> are:

=item B<station> => I<station>

The train station to report for, e.g.  "Essen HBf".  Mandatory.
The train station to report for, e.g.  "Essen HBf" or
"Alfredusbad, Essen (Ruhr)".  Mandatory.

=item B<date> => I<dd>.I<mm>.I<yyyy>

+3 −3
Original line number Diff line number Diff line
@@ -144,7 +144,7 @@ arrival/departure received by Travel::Status::DE::DeutscheBahn
		printf(
			"At %s: %s to %s from platform %s\n",
			$departure->time,
			$departure->train,
			$departure->line,
			$departure->destination,
			$departure->platform,
		);
@@ -155,7 +155,7 @@ arrival/departure received by Travel::Status::DE::DeutscheBahn
		printf(
			"At %s: %s from %s on platform %s\n",
			$arrival->time,
			$arrival->train,
			$arrival->line,
			$arrival->origin,
			$arrival->platform,
		);
@@ -194,7 +194,7 @@ delayed. May be an empty string if no (useful) information is available.

=item $result->train

Returns the line / train name, either in a format like "S 1" (S-Bahn line 1)
Returns the line name, either in a format like "S 1" (S-Bahn line 1)
or "RE 10111" (RegionalExpress train 10111, no line information).

=item $result->platform