Sha256: 28973bee4c2c82336fd2e290d4b6f3987413c59a1d145c6e1f3e8069bf0441d7

Contents?: true

Size: 729 Bytes

Versions: 14

Compression:

Stored size: 729 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 = storage_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

14 entries across 14 versions & 1 rubygems

Version Path
fog-0.3.13 lib/fog/rackspace/requests/storage/get_object.rb
fog-0.3.12 lib/fog/rackspace/requests/storage/get_object.rb
fog-0.3.11 lib/fog/rackspace/requests/storage/get_object.rb
fog-0.3.10 lib/fog/rackspace/requests/storage/get_object.rb
fog-0.3.9 lib/fog/rackspace/requests/storage/get_object.rb
fog-0.3.8 lib/fog/rackspace/requests/storage/get_object.rb
fog-0.3.7 lib/fog/rackspace/requests/storage/get_object.rb
fog-0.3.6 lib/fog/rackspace/requests/storage/get_object.rb
fog-0.3.5 lib/fog/rackspace/requests/storage/get_object.rb
fog-0.3.4 lib/fog/rackspace/requests/storage/get_object.rb
fog-0.3.3 lib/fog/rackspace/requests/storage/get_object.rb
fog-0.3.2 lib/fog/rackspace/requests/storage/get_object.rb
fog-0.3.1 lib/fog/rackspace/requests/storage/get_object.rb
fog-0.3.0 lib/fog/rackspace/requests/storage/get_object.rb