Module: ZohoHub::WithConnection::ClassMethods
- Defined in:
- lib/zoho_hub/with_connection.rb
Instance Method Summary collapse
- #delete(path, params = {}) ⇒ Object
- #get(path, params = {}) ⇒ Object
- #post(path, params = {}) ⇒ Object
- #put(path, params = {}) ⇒ Object
Instance Method Details
#delete(path, params = {}) ⇒ Object
| 23 24 25 | # File 'lib/zoho_hub/with_connection.rb', line 23 def delete(path, params = {}) ZohoHub.connection.delete(path, params.to_json) end | 
#get(path, params = {}) ⇒ Object
| 11 12 13 | # File 'lib/zoho_hub/with_connection.rb', line 11 def get(path, params = {}) ZohoHub.connection.get(path, params) end | 
#post(path, params = {}) ⇒ Object
| 15 16 17 | # File 'lib/zoho_hub/with_connection.rb', line 15 def post(path, params = {}) ZohoHub.connection.post(path, params.to_json) end | 
#put(path, params = {}) ⇒ Object
| 19 20 21 | # File 'lib/zoho_hub/with_connection.rb', line 19 def put(path, params = {}) ZohoHub.connection.put(path, params.to_json) end |