Sha256: 9a6d159f86d774c2c4db2a8b0623a724260b38bf2c0f67316f8647297c92dd43

Contents?: true

Size: 749 Bytes

Versions: 33

Compression:

Stored size: 749 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)
          response
        end

      end

      class Mock

        def get_object(container, object)
          raise MockNotImplemented.new("Contributions welcome!")
        end

      end
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
fog-0.0.91 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.90 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.89 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.88 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.87 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.86 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.85 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.84 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.83 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.82 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.81 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.80 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.79 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.78 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.77 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.76 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.75 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.74 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.73 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.72 lib/fog/rackspace/requests/files/get_object.rb