summaryrefslogtreecommitdiff
path: root/lib/Travel/Status/DE/IRIS.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-01-14 18:38:17 +0100
committerDaniel Friesel <derf@finalrewind.org>2015-01-14 18:38:17 +0100
commit502bdd149da8c972713984151e4b64449577eae4 (patch)
treeeb1716b644b6b0d3da33ac0f5cef911a257127e4 /lib/Travel/Status/DE/IRIS.pm
parent894267671c2a06d77bfcd5fbb53994282f74dcde (diff)
Turn add_ar / add_dp into setters as well
This is a preparation for a future refresh_realtime function which only updates the realtime (fchg) part of all departures.
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'),