Sha256: 2f032543ee32a911425f8e61f4586c2a9650cb7211f31d32ae83b952fbca6cea

Contents?: true

Size: 757 Bytes

Versions: 13

Compression:

Stored size: 757 Bytes

Contents

module Fog
  module Rackspace
    module Files
      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)
          raise MockNotImplemented.new("Contributions welcome!")
        end

      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
fog-0.1.3 lib/fog/rackspace/requests/files/get_object.rb
fog-0.1.2 lib/fog/rackspace/requests/files/get_object.rb
fog-0.1.1 lib/fog/rackspace/requests/files/get_object.rb
fog-0.1.0 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.100 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.99 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.98 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.97 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.96 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.95 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.94 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.93 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.92 lib/fog/rackspace/requests/files/get_object.rb