Sha256: 7be5f49a3ed0bb43d6d13ea4f20343bd4e8e0869108d1ac0dda8497dae33d4e9

Contents?: true

Size: 728 Bytes

Versions: 38

Compression:

Stored size: 728 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)
          Fog::Mock.not_implemented
        end

      end
    end
  end
end

Version data entries

38 entries across 38 versions & 2 rubygems

Version Path
fog-0.2.30 lib/fog/rackspace/requests/files/get_object.rb
fog-0.2.28 lib/fog/rackspace/requests/files/get_object.rb
fog-0.2.27 lib/fog/rackspace/requests/files/get_object.rb
fog-0.2.26 lib/fog/rackspace/requests/files/get_object.rb
fog-0.2.25 lib/fog/rackspace/requests/files/get_object.rb
fog-0.2.24 lib/fog/rackspace/requests/files/get_object.rb
tecnh-fog-0.2.23.vpc lib/fog/rackspace/requests/files/get_object.rb
fog-0.2.23 lib/fog/rackspace/requests/files/get_object.rb
fog-0.2.22 lib/fog/rackspace/requests/files/get_object.rb
fog-0.2.21 lib/fog/rackspace/requests/files/get_object.rb
fog-0.2.20 lib/fog/rackspace/requests/files/get_object.rb
fog-0.2.19 lib/fog/rackspace/requests/files/get_object.rb
fog-0.2.18 lib/fog/rackspace/requests/files/get_object.rb
fog-0.2.17 lib/fog/rackspace/requests/files/get_object.rb
fog-0.2.16 lib/fog/rackspace/requests/files/get_object.rb
fog-0.2.15 lib/fog/rackspace/requests/files/get_object.rb
fog-0.2.14 lib/fog/rackspace/requests/files/get_object.rb
fog-0.2.13 lib/fog/rackspace/requests/files/get_object.rb
fog-0.2.12 lib/fog/rackspace/requests/files/get_object.rb
fog-0.2.11 lib/fog/rackspace/requests/files/get_object.rb