Class: EquinoxCrm::Client
- Inherits:
-
Object
- Object
- EquinoxCrm::Client
- Includes:
- CrmContact
- Defined in:
- lib/equinox_crm/client.rb
Instance Attribute Summary collapse
-
#oauth_token ⇒ Object
readonly
Returns the value of attribute oauth_token.
Instance Method Summary collapse
- #contacts(id) ⇒ Object
- #contacts_list(options = nil) ⇒ Object
-
#initialize(oauth_token = nil) ⇒ Client
constructor
A new instance of Client.
Methods included from CrmContact
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_token ⇒ Object (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( = nil) all() end |