Class: RestClient::Resource
- Inherits:
-
Object
- Object
- RestClient::Resource
- Defined in:
- lib/restclient_ext/resource.rb
Instance Method Summary collapse
Instance Method Details
#delete_with_payload(payload, additional_headers = {}, &block) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/restclient_ext/resource.rb', line 3 def delete_with_payload(payload, additional_headers={}, &block) headers = ([:headers] || {}).merge(additional_headers) Request.execute(.merge( :method => :delete, :url => url, :payload => payload, :headers => headers), &(block || @block)) end |