1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Standardise on collection methods

Done with `rubocop --auto-correct --only CollectionMethods`
This commit is contained in:
Paul Thornthwaite 2014-05-23 02:40:43 +01:00
parent 814cb82f22
commit ec8b940b2c
319 changed files with 453 additions and 453 deletions

View file

@ -133,7 +133,7 @@ module Fog
current_prices = resp.body['objects']
current_pricing_pairs = current_levels.map do |resource, level|
price_for_resource_and_level = current_prices.detect do |price|
price_for_resource_and_level = current_prices.find do |price|
price['resource'] == resource
end
price_for_resource_and_level ||= {}
@ -151,7 +151,7 @@ module Fog
current_prices = resp.body['objects']
current_pricing_pairs = current_levels.map do |resource, level|
price_for_resource_and_level = current_prices.detect do |price|
price_for_resource_and_level = current_prices.find do |price|
price['level'] == level && price['resource'] == resource
end
price_for_resource_and_level ||= {}
@ -169,7 +169,7 @@ module Fog
current_prices = resp.body['objects']
current_pricing_pairs = current_levels.map do |resource, level|
price_for_resource_and_level = current_prices.detect do |price|
price_for_resource_and_level = current_prices.find do |price|
price['level'] == level && price['resource'] == resource
end
price_for_resource_and_level ||= {}