Module: SageOne::Request Private
- Included in:
- Client
- Defined in:
- lib/sage_one/request.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
This helper methods in this module are used by the public api methods. They use the Faraday::Connection defined in connection.rb for making requests. Setting ‘SageOne.raw_response’ to true can help with debugging.
Instance Method Summary collapse
- #delete(path, options = {}) ⇒ Object private
- #get(path, options = {}) ⇒ Object private
- #post(path, options = {}) ⇒ Object private
- #put(path, options = {}) ⇒ Object private
Instance Method Details
#delete(path, options = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
9 10 11 |
# File 'lib/sage_one/request.rb', line 9 def delete(path, ={}) request(:delete, path, ) end |
#get(path, options = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
13 14 15 |
# File 'lib/sage_one/request.rb', line 13 def get(path, ={}) request(:get, path, ) end |
#post(path, options = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
17 18 19 |
# File 'lib/sage_one/request.rb', line 17 def post(path, ={}) request(:post, path, ) end |
#put(path, options = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
21 22 23 |
# File 'lib/sage_one/request.rb', line 21 def put(path, ={}) request(:put, path, ) end |