Module: Surveygizmo::Request
- Included in:
- API
- Defined in:
- lib/surveygizmo/request.rb
Overview
Defines HTTP request methods
Instance Method Summary collapse
-
#delete(path, options = {}) ⇒ Object
Perform an HTTP DELETE request.
-
#get(path, options = {}) ⇒ Object
Perform an HTTP GET request.
- #post(path, options = {}, temp_api_endpoint = nil) ⇒ Object
-
#put(path, options = {}) ⇒ Object
Perform an HTTP PUT request.
Instance Method Details
#delete(path, options = {}) ⇒ Object
Perform an HTTP DELETE request
20 21 22 |
# File 'lib/surveygizmo/request.rb', line 20 def delete(path, ={}) request(:delete, path, ) end |
#get(path, options = {}) ⇒ Object
Perform an HTTP GET request
6 7 8 |
# File 'lib/surveygizmo/request.rb', line 6 def get(path, ={}) request(:get, path, ) end |
#post(path, options = {}, temp_api_endpoint = nil) ⇒ Object
10 11 12 |
# File 'lib/surveygizmo/request.rb', line 10 def post(path, ={}, temp_api_endpoint=nil) request(:post, path, , temp_api_endpoint) end |
#put(path, options = {}) ⇒ Object
Perform an HTTP PUT request
15 16 17 |
# File 'lib/surveygizmo/request.rb', line 15 def put(path, ={}) request(:put, path, ) end |