module Closeio::Client::Activity

Public Instance Methods

create_call(options = {}) click to toggle source
# File lib/closeio/resources/activity.rb, line 84
def create_call(options = {})
  post(call_path, options)
end
create_email(body) click to toggle source
# File lib/closeio/resources/activity.rb, line 44
def create_email(body)
  post(email_path, body)
end
create_note(options) click to toggle source
# File lib/closeio/resources/activity.rb, line 20
def create_note(options)
  post(note_path, options)
end
create_sms(options) click to toggle source
# File lib/closeio/resources/activity.rb, line 108
def create_sms(options)
  post(sms_path, options)
end
delete_call(id) click to toggle source
# File lib/closeio/resources/activity.rb, line 92
def delete_call(id)
  delete("#{call_path}#{id}/")
end
delete_email(id) click to toggle source
# File lib/closeio/resources/activity.rb, line 52
def delete_email(id)
  delete("#{email_path}#{id}/")
end
delete_emailthread(id) click to toggle source
# File lib/closeio/resources/activity.rb, line 68
def delete_emailthread(id)
  delete("#{emailthread_path}#{id}/")
end
delete_note(id) click to toggle source
# File lib/closeio/resources/activity.rb, line 28
def delete_note(id)
  delete("#{note_path}#{id}/")
end
delete_sms(id) click to toggle source
# File lib/closeio/resources/activity.rb, line 116
def delete_sms(id)
  delete("#{sms_path}#{id}/")
end
find_call(id) click to toggle source
# File lib/closeio/resources/activity.rb, line 80
def find_call(id)
  get("#{call_path}#{id}/")
end
find_email(id) click to toggle source
# File lib/closeio/resources/activity.rb, line 40
def find_email(id)
  get("#{email_path}#{id}/")
end
find_emailthread(id) click to toggle source
# File lib/closeio/resources/activity.rb, line 64
def find_emailthread(id)
  get("#{emailthread_path}#{id}/")
end
find_note(id) click to toggle source
# File lib/closeio/resources/activity.rb, line 16
def find_note(id)
  get("#{note_path}#{id}/")
end
find_sms(id) click to toggle source
# File lib/closeio/resources/activity.rb, line 104
def find_sms(id)
  get("#{sms_path}#{id}/")
end
list_activities(options = {}) click to toggle source
# File lib/closeio/resources/activity.rb, line 4
def list_activities(options = {})
  get(activity_path, options)
end
list_calls(options = {}) click to toggle source

Call Activities

# File lib/closeio/resources/activity.rb, line 76
def list_calls(options = {})
  get(call_path, options)
end
list_emails(options = {}) click to toggle source

Email Activities

# File lib/closeio/resources/activity.rb, line 36
def list_emails(options = {})
  get(email_path, options)
end
list_emailthreads(options = {}) click to toggle source

EmailThread Activities

# File lib/closeio/resources/activity.rb, line 60
def list_emailthreads(options = {})
  get(emailthread_path, options)
end
list_meetings(options = {}) click to toggle source

Meeting Activities

# File lib/closeio/resources/activity.rb, line 124
def list_meetings(options = {})
  get(meeting_path, options)
end
list_notes(options = {}) click to toggle source

Note Activities

# File lib/closeio/resources/activity.rb, line 12
def list_notes(options = {})
  get(note_path, options)
end
list_sms(options = {}) click to toggle source

SMS Activities

# File lib/closeio/resources/activity.rb, line 100
def list_sms(options = {})
  get(sms_path, options)
end
update_call(id, options = {}) click to toggle source
# File lib/closeio/resources/activity.rb, line 88
def update_call(id, options = {})
  put("#{call_path}#{id}/", options)
end
update_email(id, options = {}) click to toggle source
# File lib/closeio/resources/activity.rb, line 48
def update_email(id, options = {})
  put("#{email_path}#{id}/", options)
end
update_note(id, options = {}) click to toggle source
# File lib/closeio/resources/activity.rb, line 24
def update_note(id, options = {})
  put("#{note_path}#{id}/", options)
end
update_sms(id, options = {}) click to toggle source
# File lib/closeio/resources/activity.rb, line 112
def update_sms(id, options = {})
  put("#{sms_path}#{id}/", options)
end

Private Instance Methods

activity_path() click to toggle source
# File lib/closeio/resources/activity.rb, line 130
def activity_path
  'activity/'
end
call_path() click to toggle source
# File lib/closeio/resources/activity.rb, line 146
def call_path
  "#{activity_path}call/"
end
email_path() click to toggle source
# File lib/closeio/resources/activity.rb, line 138
def email_path
  "#{activity_path}email/"
end
emailthread_path() click to toggle source
# File lib/closeio/resources/activity.rb, line 142
def emailthread_path
  "#{activity_path}emailthread/"
end
meeting_path() click to toggle source
# File lib/closeio/resources/activity.rb, line 154
def meeting_path
  "#{activity_path}meeting/"
end
note_path() click to toggle source
# File lib/closeio/resources/activity.rb, line 134
def note_path
  "#{activity_path}note/"
end
sms_path() click to toggle source
# File lib/closeio/resources/activity.rb, line 150
def sms_path
  "#{activity_path}sms/"
end