summaryrefslogtreecommitdiff
path: root/lib/Travel/Status/DE/DBWagenreihung.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-12-21 19:47:55 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-12-21 19:47:55 +0100
commita75843f56d6e23cc9a1156dfb09b6fe6d81ff3f6 (patch)
treedbc2c7626a14a6ec3043e4956152e4e8ab8cd0ac /lib/Travel/Status/DE/DBWagenreihung.pm
parent8a8fb37507d9a1922d8412e88441baaac8f0d2e3 (diff)
wagon: +train_no, uic_id
Diffstat (limited to 'lib/Travel/Status/DE/DBWagenreihung.pm')
-rw-r--r--lib/Travel/Status/DE/DBWagenreihung.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Travel/Status/DE/DBWagenreihung.pm b/lib/Travel/Status/DE/DBWagenreihung.pm
index 8f639f9..e4f1d6c 100644
--- a/lib/Travel/Status/DE/DBWagenreihung.pm
+++ b/lib/Travel/Status/DE/DBWagenreihung.pm
@@ -349,7 +349,8 @@ sub wagons {
for my $group ( @{ $self->{data}{istformation}{allFahrzeuggruppe} } ) {
for my $wagon ( @{ $group->{allFahrzeug} } ) {
my $wagon_object
- = Travel::Status::DE::DBWagenreihung::Wagon->new( %{$wagon} );
+ = Travel::Status::DE::DBWagenreihung::Wagon->new( %{$wagon},
+ train_no => $group->{verkehrlichezugnummer} );
push( @{ $self->{wagons} }, $wagon_object );
if ( not $wagon_object->{position}{valid} ) {
$self->{has_bad_wagons} = 1;