lib/fog/brightbox/requests/storage/get_container.rb in fog-brightbox-0.6.1 vs lib/fog/brightbox/requests/storage/get_container.rb in fog-brightbox-0.7.0
- old
+ new
@@ -1,10 +1,9 @@
module Fog
module Storage
class Brightbox
class Real
-
# Get details for container and total bytes stored
#
# ==== Parameters
# * container<~String> - Name of container to retrieve info for
# * options<~String>:
@@ -27,18 +26,17 @@
# * 'content_type'<~String> Content-Type of object
# * 'hash'<~String> - Hash of object (etag?)
# * 'last_modified'<~String> - Last modified timestamp
# * 'name'<~String> - Name of object
def get_container(container, options = {})
- options = options.reject {|key, value| value.nil?}
+ options = options.reject { |_key, value| value.nil? }
request(
:expects => 200,
- :method => 'GET',
+ :method => "GET",
:path => Fog::Storage::Brightbox.escape(container),
- :query => {'format' => 'json'}.merge!(options)
+ :query => { "format" => "json" }.merge!(options)
)
end
-
end
end
end
end