module Closeio::Client::Contact

Public Instance Methods

create_contact(options = {}) click to toggle source
# File lib/closeio/resources/contact.rb, line 12
def create_contact(options = {})
  post(contact_path, options)
end
delete_contact(id) click to toggle source
# File lib/closeio/resources/contact.rb, line 20
def delete_contact(id)
  delete(contact_path(id))
end
find_contact(id) click to toggle source
# File lib/closeio/resources/contact.rb, line 8
def find_contact(id)
  get(contact_path(id))
end
list_contacts(_params = nil) click to toggle source
# File lib/closeio/resources/contact.rb, line 4
def list_contacts(_params = nil)
  get(contact_path)
end
update_contact(id, options = {}) click to toggle source
# File lib/closeio/resources/contact.rb, line 16
def update_contact(id, options = {})
  put(contact_path(id), options)
end

Private Instance Methods

contact_path(id = nil) click to toggle source
# File lib/closeio/resources/contact.rb, line 26
def contact_path(id = nil)
  id ? "contact/#{id}/" : 'contact/'
end