Sha256: c9773f9ab7d0d3fc77c44e7340ceac3f5d71b0051e3f585c24489e94abafc02e

Contents?: true

Size: 712 Bytes

Versions: 46

Compression:

Stored size: 712 Bytes

Contents

module Fog
  module Rackspace
    module Files
      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)
          raise MockNotImplemented.new("Contributions welcome!")
        end

      end
    end
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
fog-0.0.64 lib/fog/rackspace/requests/files/delete_object.rb
fog-0.0.63 lib/fog/rackspace/requests/files/delete_object.rb
fog-0.0.62 lib/fog/rackspace/requests/files/delete_object.rb
fog-0.0.61 lib/fog/rackspace/requests/files/delete_object.rb
fog-0.0.60 lib/fog/rackspace/requests/files/delete_object.rb
fog-0.0.59 lib/fog/rackspace/requests/files/delete_object.rb