Sha256: 749ad4b93b3caef564f46415fbeabcc6847df0ab11973251b472040787871a2e

Contents?: true

Size: 684 Bytes

Versions: 14

Compression:

Stored size: 684 Bytes

Contents

module Fog
  module Rackspace
    class Storage
      class Real

        # Delete an existing container
        #
        # ==== Parameters
        # * container<~String> - Name of container to delete
        # * object<~String> - Name of object to delete
        #
        def delete_object(container, object)
          response = storage_request(
            :expects  => 204,
            :method   => 'DELETE',
            :path     => "#{CGI.escape(container)}/#{CGI.escape(object)}"
          )
          response
        end

      end

      class Mock

        def delete_object(container, object)
          Fog::Mock.not_implemented
        end

      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
fog-0.3.13 lib/fog/rackspace/requests/storage/delete_object.rb
fog-0.3.12 lib/fog/rackspace/requests/storage/delete_object.rb
fog-0.3.11 lib/fog/rackspace/requests/storage/delete_object.rb
fog-0.3.10 lib/fog/rackspace/requests/storage/delete_object.rb
fog-0.3.9 lib/fog/rackspace/requests/storage/delete_object.rb
fog-0.3.8 lib/fog/rackspace/requests/storage/delete_object.rb
fog-0.3.7 lib/fog/rackspace/requests/storage/delete_object.rb
fog-0.3.6 lib/fog/rackspace/requests/storage/delete_object.rb
fog-0.3.5 lib/fog/rackspace/requests/storage/delete_object.rb
fog-0.3.4 lib/fog/rackspace/requests/storage/delete_object.rb
fog-0.3.3 lib/fog/rackspace/requests/storage/delete_object.rb
fog-0.3.2 lib/fog/rackspace/requests/storage/delete_object.rb
fog-0.3.1 lib/fog/rackspace/requests/storage/delete_object.rb
fog-0.3.0 lib/fog/rackspace/requests/storage/delete_object.rb