Class: Wrike3::Contact

Inherits:
Object
  • Object
show all
Includes:
Common
Defined in:
lib/wrike3/contact.rb

Instance Attribute Summary

Attributes included from Common

#wrike

Instance Method Summary collapse

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