From 7cab3f1af51473e9bff3c32279c97f59ae69c50e Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Mon, 12 Mar 2018 12:52:45 +0100 Subject: TomTom::Batch: Rename `#convert_way_costs_for_batch` Rename to `#convert_way_costs` since this method now lives inside the `TomTom::Batch` class, so that part of the name became redundant. Refs #6095 --- lib/tom_tom/batch.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/tom_tom/batch.rb b/lib/tom_tom/batch.rb index f947cced8..913f018b5 100644 --- a/lib/tom_tom/batch.rb +++ b/lib/tom_tom/batch.rb @@ -9,7 +9,7 @@ module TomTom travelMode: 'bus', routeType: 'shortest' }) - batch_items = convert_way_costs_for_batch(way_costs).map do |locations| + batch_items = convert_way_costs(way_costs).map do |locations| { query: "/calculateRoute/#{locations}/json?#{params}" } @@ -39,7 +39,7 @@ module TomTom way_costs end - def convert_way_costs_for_batch(way_costs) + def convert_way_costs(way_costs) way_costs.map do |way_cost| "#{way_cost.departure.lat},#{way_cost.departure.lng}" \ ":#{way_cost.arrival.lat},#{way_cost.arrival.lng}" -- cgit v1.2.3