summaryrefslogtreecommitdiff
path: root/lib/Travel/Status/DE/EFA.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-03-27 11:34:29 +0100
committerDaniel Friesel <derf@finalrewind.org>2021-03-27 11:34:29 +0100
commit4b1936b7b0ef3985014ab322197e5ec3a61a6055 (patch)
tree668770ebed3518e3849312bc18387003895c036a /lib/Travel/Status/DE/EFA.pm
parentb0a353ccae0f4543e71aa1bfbc9d809bc3a4739d (diff)
Result: Add train_no accessor
Diffstat (limited to 'lib/Travel/Status/DE/EFA.pm')
-rw-r--r--lib/Travel/Status/DE/EFA.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Travel/Status/DE/EFA.pm b/lib/Travel/Status/DE/EFA.pm
index 1c75c40..92fb193 100644
--- a/lib/Travel/Status/DE/EFA.pm
+++ b/lib/Travel/Status/DE/EFA.pm
@@ -443,6 +443,7 @@ sub results {
my $countdown = $e->getAttribute('countdown');
my $occupancy = $e->getAttribute('occupancy');
my $line = $e_line->getAttribute('number');
+ my $train_no = $e_line->getAttribute('trainNum');
my $dest = $e_line->getAttribute('direction');
my $info = $e_info->textContent;
my $key = $e_line->getAttribute('key');
@@ -501,6 +502,7 @@ sub results {
key => $key,
lineref => $line_obj[0] // undef,
line => $line,
+ train_no => $train_no,
destination => $dest,
occupancy => $occupancy,
countdown => $countdown,