Module: BillysBilling::Request
- Included in:
- Client
- Defined in:
- lib/billys_billing/request.rb
Overview
Defines HTTP request methods
Instance Method Summary collapse
-
#delete_request(path, params = {}, options = {}) ⇒ Object
Perform an HTTP DELETE request.
-
#get_request(path, params = {}, options = {}) ⇒ Object
Perform an HTTP GET request.
-
#post_request(path, params = {}, options = {}) ⇒ Object
Perform an HTTP POST request.
-
#put_request(path, params = {}, options = {}) ⇒ Object
Perform an HTTP PUT request.
Instance Method Details
#delete_request(path, params = {}, options = {}) ⇒ Object
Perform an HTTP DELETE request
9 10 11 |
# File 'lib/billys_billing/request.rb', line 9 def delete_request(path, params={}, ={}) request(:delete, path, params, ) end |
#get_request(path, params = {}, options = {}) ⇒ Object
Perform an HTTP GET request
14 15 16 |
# File 'lib/billys_billing/request.rb', line 14 def get_request(path, params={}, ={}) request(:get, path, params, ) end |
#post_request(path, params = {}, options = {}) ⇒ Object
Perform an HTTP POST request
19 20 21 |
# File 'lib/billys_billing/request.rb', line 19 def post_request(path, params={}, ={}) request(:post, path, params, ) end |
#put_request(path, params = {}, options = {}) ⇒ Object
Perform an HTTP PUT request
24 25 26 |
# File 'lib/billys_billing/request.rb', line 24 def put_request(path, params={}, ={}) request(:put, path, params, ) end |