From 1c1ecc85064042b0d719e3134afe310227d41f1c Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Fri, 23 Mar 2018 17:57:54 +0100 Subject: TomTom::Matrix#points_from_way_costs: Better names for IDs Instead of a generic `ids` array, use clearer variable names for these values. Refs #6222 --- lib/tom_tom/matrix.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/tom_tom/matrix.rb b/lib/tom_tom/matrix.rb index 4ef620f99..857c76b2f 100644 --- a/lib/tom_tom/matrix.rb +++ b/lib/tom_tom/matrix.rb @@ -32,18 +32,18 @@ module TomTom points = Set.new way_costs.each do |way_cost| - ids = way_cost.id.split('-') + departure_id, arrival_id = way_cost.id.split('-') points.add( TomTom::Matrix::Point.new( way_cost.departure, - ids[0] + departure_id ) ) points.add( TomTom::Matrix::Point.new( way_cost.arrival, - ids[1] + arrival_id ) ) end -- cgit v1.2.3