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



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

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

#delete_contact(id) ⇒ Object



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

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

#find_contact(id) ⇒ Object



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

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

#list_contacts(_params = nil) ⇒ Object



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

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

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



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

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