summaryrefslogtreecommitdiff
path: root/lib/Travel/Status/DE/IRIS.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Travel/Status/DE/IRIS.pm')
-rw-r--r--lib/Travel/Status/DE/IRIS.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Travel/Status/DE/IRIS.pm b/lib/Travel/Status/DE/IRIS.pm
index a063c5e..9b5b46d 100644
--- a/lib/Travel/Status/DE/IRIS.pm
+++ b/lib/Travel/Status/DE/IRIS.pm
@@ -256,7 +256,7 @@ sub get_realtime {
);
}
if ($e_ar) {
- $result->add_ar(
+ $result->set_ar(
arrival_ts => $e_ar->getAttribute('ct'),
plan_arrivaL_ts => $e_ar->getAttribute('pt'),
platform => $e_ar->getAttribute('cp'),
@@ -267,7 +267,7 @@ sub get_realtime {
);
}
if ($e_dp) {
- $result->add_dp(
+ $result->set_dp(
departure_ts => $e_dp->getAttribute('ct'),
plan_departure_ts => $e_dp->getAttribute('pt'),
platform => $e_dp->getAttribute('cp'),