Module: CrmContact
- Included in:
- EquinoxCrm::Client
- Defined in:
- lib/equinox_crm/crm_contact.rb
Instance Method Summary collapse
Instance Method Details
#all(options) ⇒ Object
16 17 18 19 20 21 22 23 24 |
# File 'lib/equinox_crm/crm_contact.rb', line 16 def all() limit = && [:limit] page = && [:page] response = request( http_method: :get, endpoint: "#{API_URL}?limit=#{limit}&page=#{page}" ) response end |
#find(id) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/equinox_crm/crm_contact.rb', line 8 def find(id) response = request( http_method: :get, endpoint: "#{API_URL}/#{id}" ) response end |