Class: Halchemy::Requester
- Inherits:
-
ReadOnlyRequester
- Object
- BaseRequester
- ReadOnlyRequester
- Halchemy::Requester
- Defined in:
- lib/halchemy/requester.rb
Overview
This provides a full-suite of HTTP methods, with handling of payload conversion and optimistic concurrency.
Constant Summary
Constants inherited from BaseRequester
BaseRequester::LIST_STYLE_HANDLERS
Instance Method Summary collapse
- #delete ⇒ Object
- #patch(data = nil, content_type = nil) ⇒ Object
- #post(data = nil, content_type = nil) ⇒ Object
- #put(data = nil, content_type = nil) ⇒ Object
Methods inherited from ReadOnlyRequester
Methods inherited from BaseRequester
#initialize, #request, #url, #with_headers, #with_parameters, #with_template_values
Constructor Details
This class inherits a constructor from Halchemy::BaseRequester
Instance Method Details
#delete ⇒ Object
165 166 167 168 |
# File 'lib/halchemy/requester.rb', line 165 def delete prepare_modify_header request :delete end |
#patch(data = nil, content_type = nil) ⇒ Object
159 160 161 162 163 |
# File 'lib/halchemy/requester.rb', line 159 def patch(data = nil, content_type = nil) prepare_payload(content_type, data) prepare_modify_header request :patch end |
#post(data = nil, content_type = nil) ⇒ Object
148 149 150 151 |
# File 'lib/halchemy/requester.rb', line 148 def post(data = nil, content_type = nil) prepare_payload(content_type, data) request :post end |
#put(data = nil, content_type = nil) ⇒ Object
153 154 155 156 157 |
# File 'lib/halchemy/requester.rb', line 153 def put(data = nil, content_type = nil) prepare_payload(content_type, data) prepare_modify_header request :put end |