Module: Closeio::Client::Contact
- Included in:
- Closeio::Client
- Defined in:
- lib/closeio/resources/contact.rb
Instance Method Summary collapse
- #create_contact(options = {}) ⇒ Object
- #delete_contact(id) ⇒ Object
- #find_contact(id) ⇒ Object
- #list_contacts(params = nil) ⇒ Object
- #update_contact(id, options = {}) ⇒ Object
Instance Method Details
#create_contact(options = {}) ⇒ Object
13 14 15 |
# File 'lib/closeio/resources/contact.rb', line 13 def create_contact( = {}) post(contact_path, ) 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, = {}) put(contact_path(id), ) end |