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.71 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.70 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.69 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.68 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.67 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.66 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.65 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.64 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.63 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.62 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.61 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.60 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.59 lib/fog/rackspace/requests/files/get_object.rb