1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Add implementation for #delete_object method.

This commit is contained in:
Rupak Ganguly 2011-06-15 18:00:33 -04:00
parent 10ed24606e
commit be0b19f7c7

View file

@ -0,0 +1,24 @@
module Fog
module HP
class Storage
class Real
# Delete an existing object
#
# ==== Parameters
# * container<~String> - Name of container to delete
# * object<~String> - Name of object to delete
#
def delete_object(container, object)
response = request(
:expects => 204,
:method => 'DELETE',
:path => "#{URI.escape(container)}/#{URI.escape(object)}"
)
response
end
end
end
end
end