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

Reformatting and making consistent with other classes.

This commit is contained in:
Andrew Newman 2011-11-05 07:40:14 +10:00
parent 0670616f0c
commit 1b32cf88fe

View file

@ -2,16 +2,18 @@ module Fog
module Storage module Storage
class Ninefold class Ninefold
class Real class Real
def head_object(namespace = '', options = { })
options = options.reject { |key, value| value.nil? } def head_namespace(namespace = '', options = {})
options = options.reject {|key, value| value.nil?}
request({ request({
:expects => 200, :expects => 200,
:method => 'HEAD', :method => 'HEAD',
:path => "namespace/" + namespace, :path => "namespace/" + namespace,
:query => {}, :query => {},
:parse => true :parse => true
}.merge(options)) }.merge(options))
end end
end end
end end
end end