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

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, options={})
  request(:delete, path, options)
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, options={})
  request(:get, path, options)
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, options={})
  request(:post, path, options)
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, options={})
  request(:put, path, options)
end