Sha256: bf6c9c02527eafdacfea92a5f76178397596b74e1068fd17b79456ab29499819

Contents?: true

Size: 601 Bytes

Versions: 5

Compression:

Stored size: 601 Bytes

Contents

module Fog
  module Rackspace
    class Storage
      class Real

        # Get details for object
        #
        # ==== Parameters
        # * container<~String> - Name of container to look in
        # * object<~String> - Name of object to look for
        #
        def get_object(container, object, &block)
          response = request({
            :block    => block,
            :expects  => 200,
            :method   => 'GET',
            :path     => "#{CGI.escape(container)}/#{CGI.escape(object)}"
          }, false, &block)
          response
        end

      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fog-0.7.1 lib/fog/storage/requests/rackspace/get_object.rb
fog-0.7.0 lib/fog/storage/requests/rackspace/get_object.rb
fog-0.6.0 lib/fog/storage/requests/rackspace/get_object.rb
fog-0.5.3 lib/fog/storage/requests/rackspace/get_object.rb
fog-0.5.2 lib/fog/storage/requests/rackspace/get_object.rb