Class: OpenKit::Request::DeleteDelegate
- Inherits:
-
BaseDelegate
- Object
- BaseDelegate
- OpenKit::Request::DeleteDelegate
- Defined in:
- lib/openkit/request/delete.rb
Instance Attribute Summary
Attributes inherited from BaseDelegate
#app_key, #host, #path, #scheme, #secret_key
Instance Method Summary collapse
-
#initialize(path) ⇒ DeleteDelegate
constructor
A new instance of DeleteDelegate.
- #net_request ⇒ Object
Methods inherited from BaseDelegate
Constructor Details
#initialize(path) ⇒ DeleteDelegate
Returns a new instance of DeleteDelegate.
19 20 21 |
# File 'lib/openkit/request/delete.rb', line 19 def initialize(path) super(path) end |
Instance Method Details
#net_request ⇒ Object
23 24 25 26 27 28 |
# File 'lib/openkit/request/delete.rb', line 23 def net_request req = Net::HTTP::Delete.new(uri.request_uri) req['Content-Type'] = "application/json; charset=utf-8" req['Accept'] = "application/json" req end |