Module: Lvmama::Request
- Included in:
- API
- Defined in:
- lib/lvmama-api/request.rb
Overview
Defines HTTP request methods
Instance Method Summary collapse
-
#delete(path, options = {}, raw = false) ⇒ Object
Perform an HTTP DELETE request.
-
#get(path, options = {}, raw = false) ⇒ Object
Perform an HTTP GET request.
-
#post(path, options = {}, raw = false) ⇒ Object
Perform an HTTP POST request.
-
#put(path, options = {}, raw = false) ⇒ Object
Perform an HTTP PUT request.
Instance Method Details
#delete(path, options = {}, raw = false) ⇒ Object
Perform an HTTP DELETE request
22 23 24 |
# File 'lib/lvmama-api/request.rb', line 22 def delete(path, ={}, raw=false) request(:get, path, , raw) end |
#get(path, options = {}, raw = false) ⇒ Object
Perform an HTTP GET request
7 8 9 |
# File 'lib/lvmama-api/request.rb', line 7 def get(path, ={}, raw=false) request(:get, path, , raw) end |
#post(path, options = {}, raw = false) ⇒ Object
Perform an HTTP POST request
12 13 14 |
# File 'lib/lvmama-api/request.rb', line 12 def post(path, ={}, raw=false) request(:get, path, , raw) end |
#put(path, options = {}, raw = false) ⇒ Object
Perform an HTTP PUT request
17 18 19 |
# File 'lib/lvmama-api/request.rb', line 17 def put(path, ={}, raw=false) request(:get, path, , raw) end |