Module: Invoicexpress::Request
- Included in:
- Client
- Defined in:
- lib/invoicexpress/request.rb
Instance Method Summary collapse
- #delete(path, options = {}) ⇒ Object
- #get(path, options = {}) ⇒ Object
- #patch(path, options = {}) ⇒ Object
- #post(path, options = {}) ⇒ Object
- #put(path, options = {}) ⇒ Object
Instance Method Details
#delete(path, options = {}) ⇒ Object
4 5 6 |
# File 'lib/invoicexpress/request.rb', line 4 def delete(path, ={}) request(:delete, path, ).body end |
#get(path, options = {}) ⇒ Object
8 9 10 |
# File 'lib/invoicexpress/request.rb', line 8 def get(path, ={}) repsonse = request(:get, path, ).body end |
#patch(path, options = {}) ⇒ Object
12 13 14 |
# File 'lib/invoicexpress/request.rb', line 12 def patch(path, ={}) request(:patch, path, ).body end |
#post(path, options = {}) ⇒ Object
16 17 18 |
# File 'lib/invoicexpress/request.rb', line 16 def post(path, ={}) request(:post, path, ).body end |
#put(path, options = {}) ⇒ Object
20 21 22 |
# File 'lib/invoicexpress/request.rb', line 20 def put(path, ={}) request(:put, path, ).body end |