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