Method: Fog::Storage::Softlayer::Mock#delete_object
- Defined in:
- lib/fog/softlayer/requests/storage/delete_object.rb
#delete_object(container, object) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/fog/softlayer/requests/storage/delete_object.rb', line 6 def delete_object(container, object) response = Excon::Response.new if @containers[container].nil? || @containers[container][object].nil? # Container or object doesn't exist. response.body = '<html><h1>Not Found</h1><p>The resource could not be found.</p></html>' response.status = 404 else # Success response.body = '' response.status = 204 end response end |