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

option keys should be symbols for consistency

This commit is contained in:
Wesley Beary 2009-06-07 00:54:22 -07:00
parent a10c578ec6
commit c7f1ed5ba3

View file

@ -62,13 +62,15 @@ module Fog
# ==== Parameters
# bucket_name<~String>:: name of bucket to list object keys from
# options<~Hash>:: config arguments for list. Defaults to {}.
# 'prefix' limits object keys to those beginning with its value.
# 'marker' limits object keys to only those that appear
# :prefix limits object keys to those beginning with its value.
# :marker limits object keys to only those that appear
# lexicographically after its value.
# 'max-keys' limits number of object keys returned
# 'delimiter' causes keys with the same string between the prefix
# :maxkeys limits number of object keys returned
# :delimiter causes keys with the same string between the prefix
# value and the first occurence of delimiter to be rolled up
def get_bucket(bucket_name, options = {})
options['max-keys'] = options.delete(:maxkeys) if options[:maxkeys]
params.delete_if {}
query = '?'
options.each do |key, value|
query << "#{key}=#{value};"