Module: Closeio::Client::Contact

Included in:
Closeio::Client
Defined in:
lib/closeio/resources/contact.rb

Instance Method Summary collapse

Instance Method Details

#create_contact(options = {}) ⇒ Object



13
14
15
# File 'lib/closeio/resources/contact.rb', line 13

def create_contact(options = {})
  post(contact_path, options)
end

#delete_contact(id) ⇒ Object



21
22
23
# File 'lib/closeio/resources/contact.rb', line 21

def delete_contact(id)
  delete(contact_path(id))
end

#find_contact(id) ⇒ Object



9
10
11
# File 'lib/closeio/resources/contact.rb', line 9

def find_contact(id)
  get(contact_path(id))
end

#list_contacts(params = nil) ⇒ Object



5
6
7
# File 'lib/closeio/resources/contact.rb', line 5

def list_contacts(params=nil)
  get(contact_path)
end

#update_contact(id, options = {}) ⇒ Object



17
18
19
# File 'lib/closeio/resources/contact.rb', line 17

def update_contact(id, options = {})
  put(contact_path(id), options)
end