Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Travel-Status-DE-HAFAS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
derf
Travel-Status-DE-HAFAS
Commits
6ee62b87
Commit
6ee62b87
authored
13 years ago
by
Birte Kristina Friesel
Browse files
Options
Downloads
Patches
Plain Diff
Result.pm: Add line accessor for ::VRR compatibility
parent
f1922960
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/Travel/Status/DE/DeutscheBahn/Result.pm
+13
-5
13 additions, 5 deletions
lib/Travel/Status/DE/DeutscheBahn/Result.pm
with
13 additions
and
5 deletions
lib/Travel/Status/DE/DeutscheBahn/Result.pm
+
13
−
5
View file @
6ee62b87
...
@@ -25,6 +25,12 @@ sub destination {
...
@@ -25,6 +25,12 @@ sub destination {
return
$self
->
{
route_end
};
return
$self
->
{
route_end
};
}
}
sub
line
{
my
(
$self
)
=
@_
;
return
$self
->
{
train
};
}
sub
info
{
sub
info
{
my
(
$self
)
=
@_
;
my
(
$self
)
=
@_
;
...
@@ -191,6 +197,13 @@ Returns the train's delay in minutes, or undef if it is unknown.
...
@@ -191,6 +197,13 @@ Returns the train's delay in minutes, or undef if it is unknown.
Returns additional information, for instance the reason why the train is
Returns additional information, for instance the reason why the train is
delayed. May be an empty string if no (useful) information is available.
delayed. May be an empty string if no (useful) information is available.
=item $result->line
=item $result->train
Returns the line / train name, either in a format like "S 1" (S-Bahn line 1)
or "RE 10111" (RegionalExpress train 10111, no line information).
=item $result->platform
=item $result->platform
Returns the platform from which the train will depart / at which it will
Returns the platform from which the train will depart / at which it will
...
@@ -233,11 +246,6 @@ references of the form C<< [ arrival time, station name ] >>.
...
@@ -233,11 +246,6 @@ references of the form C<< [ arrival time, station name ] >>.
Returns the arrival/departure time as string in "hh:mm" format.
Returns the arrival/departure time as string in "hh:mm" format.
=item $result->train
Returns the line / train name, either in a format like "S 1" (S-Bahn line 1)
or "RE 10111" (RegionalExpress train 10111, no line information).
=back
=back
=head2 INTERNAL
=head2 INTERNAL
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment