Sha256: b5a1fd20c31cacc41f1ffbd6146ceba126cedba593c9e3e14607fc0e19ae7d50
Contents?: true
Size: 902 Bytes
Versions: 46
Compression:
Stored size: 902 Bytes
Contents
module Fog module Rackspace module Files class Real # List number of objects and total bytes stored # # ==== Parameters # * container<~String> - Name of container to retrieve info for # # ==== Returns # * response<~Excon::Response>: # * headers<~Hash>: # * 'X-Container-Object-Count'<~String> - Count of containers # * 'X-Container-Bytes-Used'<~String> - Bytes used def head_container(container) response = storage_request( :expects => 204, :method => 'HEAD', :path => container, :query => 'format=json' ) response end end class Mock def head_container(container) raise MockNotImplemented.new("Contributions welcome!") end end end end end
Version data entries
46 entries across 46 versions & 1 rubygems