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(options = {}) ⇒ Object
- #update_contact(id, options = {}) ⇒ Object
Instance Method Details
#create_contact(options = {}) ⇒ Object
12 13 14 |
# File 'lib/closeio/resources/contact.rb', line 12 def create_contact( = {}) post(contact_path, ) 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(options = {}) ⇒ Object
4 5 6 |
# File 'lib/closeio/resources/contact.rb', line 4 def list_contacts( = {}) get(contact_path, ) end |
#update_contact(id, options = {}) ⇒ Object
16 17 18 |
# File 'lib/closeio/resources/contact.rb', line 16 def update_contact(id, = {}) put(contact_path(id), ) end |