Class: Wrike3::Contact
Instance Attribute Summary
Attributes included from Common
Instance Method Summary collapse
- #details(ids, params = {}) ⇒ Object
-
#initialize(wrike) ⇒ Contact
constructor
A new instance of Contact.
- #list(params = {}) ⇒ Object
Constructor Details
#initialize(wrike) ⇒ Contact
5 6 7 |
# File 'lib/wrike3/contact.rb', line 5 def initialize(wrike) @wrike = wrike end |
Instance Method Details
#details(ids, params = {}) ⇒ Object
13 14 15 |
# File 'lib/wrike3/contact.rb', line 13 def details(ids, params = {}) wrike.execute(:get, api_url("contacts/#{ids}"), params) end |
#list(params = {}) ⇒ Object
9 10 11 |
# File 'lib/wrike3/contact.rb', line 9 def list(params = {}) wrike.execute(:get, api_url('contacts'), params) end |