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

Fog::AWS.indexed_reuqest_param

This commit is contained in:
Edward Muller 2012-03-31 12:20:31 -07:00
parent fd36a788cd
commit 45d8f49333

View file

@ -60,6 +60,14 @@ module Fog
end
end
def self.indexed_request_param(name, values)
idx = -1
Array(values).inject({}) do |params, value|
params["#{name}.#{idx += 1}"] = value
params
end
end
def self.indexed_filters(filters)
params = {}
filters.keys.each_with_index do |key, key_index|