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:
parent
fd36a788cd
commit
45d8f49333
1 changed files with 8 additions and 0 deletions
|
@ -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|
|
||||
|
|
Loading…
Reference in a new issue