Class: Loquor::HttpAction::Delete
- Inherits:
-
Loquor::HttpAction
- Object
- Loquor::HttpAction
- Loquor::HttpAction::Delete
- Defined in:
- lib/loquor/http_actions/delete.rb
Class Method Summary collapse
Instance Method Summary collapse
- #delete ⇒ Object
-
#initialize(url, deps) ⇒ Delete
constructor
A new instance of Delete.
Methods inherited from Loquor::HttpAction
#back_off, #execute, #signed_request
Constructor Details
#initialize(url, deps) ⇒ Delete
Returns a new instance of Delete.
7 8 9 |
# File 'lib/loquor/http_actions/delete.rb', line 7 def initialize(url, deps) super(url, deps) end |
Class Method Details
.delete(url, deps) ⇒ Object
3 4 5 |
# File 'lib/loquor/http_actions/delete.rb', line 3 def self.delete(url, deps) new(url, deps).delete end |
Instance Method Details
#delete ⇒ Object
11 12 13 14 15 16 |
# File 'lib/loquor/http_actions/delete.rb', line 11 def delete @config.logger.info "Making DELETE request to: #{full_url}" response = JSON.parse(signed_request.execute) @config.logger.info "Signed request executed. Response: #{response}" response end |