Sha256: 0ba59743615719bb2457d9d8204cf54594cefda111e475ce6cf8f7dc003fe292

Contents?: true

Size: 681 Bytes

Versions: 21

Compression:

Stored size: 681 Bytes

Contents

module Fog
  module Brightbox
    class Storage
      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)
          params = {
            :expects  => 200,
            :method   => "GET",
            :path     => "#{Fog::Brightbox::Storage.escape(container)}/#{Fog::Brightbox::Storage.escape(object)}"
          }

          if block_given?
            params[:response_block] = block
          end

          request(params, false)
        end
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
fog-brightbox-1.10.0 lib/fog/brightbox/requests/storage/get_object.rb
fog-brightbox-1.9.1 lib/fog/brightbox/requests/storage/get_object.rb
fog-brightbox-1.9.0 lib/fog/brightbox/requests/storage/get_object.rb
fog-brightbox-1.8.2 lib/fog/brightbox/requests/storage/get_object.rb
fog-brightbox-1.8.1 lib/fog/brightbox/requests/storage/get_object.rb
fog-brightbox-1.8.0 lib/fog/brightbox/requests/storage/get_object.rb
fog-brightbox-1.7.3 lib/fog/brightbox/requests/storage/get_object.rb
fog-brightbox-1.7.2 lib/fog/brightbox/requests/storage/get_object.rb
fog-brightbox-1.7.1 lib/fog/brightbox/requests/storage/get_object.rb
fog-brightbox-1.7.0 lib/fog/brightbox/requests/storage/get_object.rb
fog-brightbox-1.6.0 lib/fog/brightbox/requests/storage/get_object.rb
fog-brightbox-1.5.0 lib/fog/brightbox/requests/storage/get_object.rb
fog-brightbox-1.5.0.rc1 lib/fog/brightbox/requests/storage/get_object.rb
fog-brightbox-1.4.2 lib/fog/brightbox/requests/storage/get_object.rb
fog-brightbox-1.4.1 lib/fog/brightbox/requests/storage/get_object.rb
fog-brightbox-1.4.0 lib/fog/brightbox/requests/storage/get_object.rb
fog-brightbox-1.3.0 lib/fog/brightbox/requests/storage/get_object.rb
fog-brightbox-1.2.0 lib/fog/brightbox/requests/storage/get_object.rb
fog-brightbox-1.1.0 lib/fog/brightbox/requests/storage/get_object.rb
fog-brightbox-1.0.0 lib/fog/brightbox/requests/storage/get_object.rb