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
f2d2e5bd
Commit
f2d2e5bd
authored
9 years ago
by
Birte Kristina Friesel
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of lastlight:var/git_root/Travel-Status-DE-DeutscheBahn
Conflicts: Changelog
parents
fd5b343a
a58a9a6c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Changelog
+1
-0
1 addition, 0 deletions
Changelog
lib/Travel/Status/DE/DeutscheBahn/Result.pm
+14
-0
14 additions, 0 deletions
lib/Travel/Status/DE/DeutscheBahn/Result.pm
with
15 additions
and
0 deletions
Changelog
+
1
−
0
View file @
f2d2e5bd
...
...
@@ -2,6 +2,7 @@ git HEAD
* Result->route_interesting: Also consider airports
* Result: Add route_info accessor
* Result: Add is_cancelled accessor
Travel::Status::DE::DeutscheBahn 1.04 - Sun May 03 2015
...
...
This diff is collapsed.
Click to expand it.
lib/Travel/Status/DE/DeutscheBahn/Result.pm
+
14
−
0
View file @
f2d2e5bd
...
...
@@ -62,6 +62,16 @@ sub delay {
return
;
}
sub
is_cancelled
{
my
(
$self
)
=
@_
;
my
$info
=
$self
->
info_raw
;
if
(
$info
=~
m{ Fahrt \s f.llt \s aus }ox
)
{
return
1
;
}
return
0
;
}
sub
origin
{
my
(
$self
)
=
@_
;
...
...
@@ -218,6 +228,10 @@ Returns the train's delay in minutes, or undef if it is unknown.
Returns additional information, for instance the reason why the train is
delayed. May be an empty string if no (useful) information is available.
=item $result->is_cancelled
True if the train was cancelled, false otherwise.
=item $result->line
=item $result->train
...
...
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