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:
parent
0670616f0c
commit
1b32cf88fe
1 changed files with 5 additions and 3 deletions
|
@ -2,16 +2,18 @@ module Fog
|
|||
module Storage
|
||||
class Ninefold
|
||||
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({
|
||||
:expects => 200,
|
||||
:method => 'HEAD',
|
||||
:path => "namespace/" + namespace,
|
||||
:query => {},
|
||||
:parse => true
|
||||
}.merge(options))
|
||||
}.merge(options))
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue