module ZohoHub::WithConnection

Adds the ability to do API requests (GET / PUT and POST requests) when included in a class.

Public Class Methods

included(base) click to toggle source
# File lib/zoho_hub/with_connection.rb, line 6
def self.included(base)
  base.extend ClassMethods
end

Public Instance Methods

delete(path, params = {}) click to toggle source
# File lib/zoho_hub/with_connection.rb, line 40
def delete(path, params = {})
  self.class.delete(path, params)
end
get(path, params = {}) click to toggle source
# File lib/zoho_hub/with_connection.rb, line 28
def get(path, params = {})
  self.class.get(path, params)
end
post(path, params = {}) click to toggle source
# File lib/zoho_hub/with_connection.rb, line 32
def post(path, params = {})
  self.class.post(path, params)
end
put(path, params = {}) click to toggle source
# File lib/zoho_hub/with_connection.rb, line 36
def put(path, params = {})
  self.class.put(path, params)
end