Class: EquinoxCrm::Client

Inherits:
Object
  • Object
show all
Includes:
CrmContact
Defined in:
lib/equinox_crm/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from CrmContact

#all, #find

Constructor Details

#initialize(oauth_token = nil) ⇒ Client

Returns a new instance of Client.



11
12
13
# File 'lib/equinox_crm/client.rb', line 11

def initialize(oauth_token = nil)
  @oauth_token = oauth_token
end

Instance Attribute Details

#oauth_tokenObject (readonly)

Returns the value of attribute oauth_token.



9
10
11
# File 'lib/equinox_crm/client.rb', line 9

def oauth_token
  @oauth_token
end

Instance Method Details

#contacts(id) ⇒ Object



15
16
17
# File 'lib/equinox_crm/client.rb', line 15

def contacts(id)
  find(id)
end

#contacts_list(options = nil) ⇒ Object



19
20
21
# File 'lib/equinox_crm/client.rb', line 19

def contacts_list(options = nil)
  all(options)
end