Sha256: 1de1adaed3fdff71dc33fd0d7c2710e76b13ba6c8cbed2765d04e8c65b833608

Contents?: true

Size: 721 Bytes

Versions: 2

Compression:

Stored size: 721 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

      class Mock

        def get_object(container, object)
          Fog::Mock.not_implemented
        end

      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fog-0.3.15 lib/fog/rackspace/requests/storage/get_object.rb
fog-0.3.14 lib/fog/rackspace/requests/storage/get_object.rb