Module: Cashstar::Request
- Included in:
- API
- Defined in:
- lib/cashstar/request.rb
Overview
Defines HTTP request methods
Instance Method Summary collapse
-
#delete(path, params = {}, options = {}) ⇒ Object
Perform an HTTP DELETE request.
-
#get(path, params = {}, options = {}) ⇒ Object
Perform an HTTP GET request.
- #post(path, params = {}, options = {}) ⇒ Object
-
#put(path, params = {}, options = {}) ⇒ Object
Perform an HTTP PUT request.
Instance Method Details
#delete(path, params = {}, options = {}) ⇒ Object
Perform an HTTP DELETE request
19 20 21 |
# File 'lib/cashstar/request.rb', line 19 def delete(path, params={}, ={}) request(:delete, path, params, ) end |
#get(path, params = {}, options = {}) ⇒ Object
Perform an HTTP GET request
5 6 7 |
# File 'lib/cashstar/request.rb', line 5 def get(path, params={}, ={}) request(:get, path, params, ) end |
#post(path, params = {}, options = {}) ⇒ Object
9 10 11 |
# File 'lib/cashstar/request.rb', line 9 def post(path, params={}, ={}) request(:post, path, params, ) end |
#put(path, params = {}, options = {}) ⇒ Object
Perform an HTTP PUT request
14 15 16 |
# File 'lib/cashstar/request.rb', line 14 def put(path, params={}, ={}) request(:put, path, params, ) end |