Sha256: fb6d0953b44be2318ce9028f03077e348b4b9bbf1387b393c8dfc4e018c64eb8

Contents?: true

Size: 959 Bytes

Versions: 8

Compression:

Stored size: 959 Bytes

Contents

module Fog
  module Storage
    class Rackspace
      class Real

        # Get details for object
        #
        # ==== Parameters
        # * container<~String> - Name of container to look in
        # * object<~String> - Name of object to look for
        # @raise [Fog::Storage::Rackspace::NotFound] - HTTP 404
        # @raise [Fog::Storage::Rackspace::BadRequest] - HTTP 400
        # @raise [Fog::Storage::Rackspace::InternalServerError] - HTTP 500
        # @raise [Fog::Storage::Rackspace::ServiceError]
        def get_object(container, object, &block)
          params = {}

          if block_given?
            params[:response_block] = Proc.new
          end

          request(params.merge!({
            :expects  => 200,
            :method   => 'GET',
            :path     => "#{Fog::Rackspace.escape(container)}/#{Fog::Rackspace.escape(object)}"
          }),
          false,
          &block)
        end

      end
    end
  end
end

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
gapinc-fog-1.12.1.2.1 lib/fog/rackspace/requests/storage/get_object.rb
fog-maestrodev-1.15.0.20130829165835 lib/fog/rackspace/requests/storage/get_object.rb
fog-1.15.0 lib/fog/rackspace/requests/storage/get_object.rb
gapinc-fog-1.14.0 lib/fog/rackspace/requests/storage/get_object.rb
fog-maestrodev-1.14.0.20130806165225 lib/fog/rackspace/requests/storage/get_object.rb
fog-1.14.0 lib/fog/rackspace/requests/storage/get_object.rb
fog-1.13.0 lib/fog/rackspace/requests/storage/get_object.rb
gapinc-fog-1.12.1.2 lib/fog/rackspace/requests/storage/get_object.rb