Module: Closeio::Client::Activity

Included in:
Closeio::Client
Defined in:
lib/closeio/resources/activity.rb

Instance Method Summary collapse

Instance Method Details

#create_call(options = {}) ⇒ Object



84
85
86
# File 'lib/closeio/resources/activity.rb', line 84

def create_call(options = {})
  post(call_path, options)
end

#create_email(body) ⇒ Object



44
45
46
# File 'lib/closeio/resources/activity.rb', line 44

def create_email(body)
  post(email_path, body)
end

#create_note(options) ⇒ Object



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

def create_note(options)
  post(note_path, options)
end

#create_sms(options) ⇒ Object



108
109
110
# File 'lib/closeio/resources/activity.rb', line 108

def create_sms(options)
  post(sms_path, options)
end

#delete_call(id) ⇒ Object



92
93
94
# File 'lib/closeio/resources/activity.rb', line 92

def delete_call(id)
  delete("#{call_path}#{id}/")
end

#delete_email(id) ⇒ Object



52
53
54
# File 'lib/closeio/resources/activity.rb', line 52

def delete_email(id)
  delete("#{email_path}#{id}/")
end

#delete_emailthread(id) ⇒ Object



68
69
70
# File 'lib/closeio/resources/activity.rb', line 68

def delete_emailthread(id)
  delete("#{emailthread_path}#{id}/")
end

#delete_note(id) ⇒ Object



28
29
30
# File 'lib/closeio/resources/activity.rb', line 28

def delete_note(id)
  delete("#{note_path}#{id}/")
end

#delete_sms(id) ⇒ Object



116
117
118
# File 'lib/closeio/resources/activity.rb', line 116

def delete_sms(id)
  delete("#{sms_path}#{id}/")
end

#find_call(id) ⇒ Object



80
81
82
# File 'lib/closeio/resources/activity.rb', line 80

def find_call(id)
  get("#{call_path}#{id}/")
end

#find_email(id) ⇒ Object



40
41
42
# File 'lib/closeio/resources/activity.rb', line 40

def find_email(id)
  get("#{email_path}#{id}/")
end

#find_emailthread(id) ⇒ Object



64
65
66
# File 'lib/closeio/resources/activity.rb', line 64

def find_emailthread(id)
  get("#{emailthread_path}#{id}/")
end

#find_note(id) ⇒ Object



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

def find_note(id)
  get("#{note_path}#{id}/")
end

#find_sms(id) ⇒ Object



104
105
106
# File 'lib/closeio/resources/activity.rb', line 104

def find_sms(id)
  get("#{sms_path}#{id}/")
end

#list_activities(options = {}) ⇒ Object



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

def list_activities(options = {})
  get(activity_path, options)
end

#list_calls(options = {}) ⇒ Object

Call Activities



76
77
78
# File 'lib/closeio/resources/activity.rb', line 76

def list_calls(options = {})
  get(call_path, options)
end

#list_emails(options = {}) ⇒ Object

Email Activities



36
37
38
# File 'lib/closeio/resources/activity.rb', line 36

def list_emails(options = {})
  get(email_path, options)
end

#list_emailthreads(options = {}) ⇒ Object

EmailThread Activities



60
61
62
# File 'lib/closeio/resources/activity.rb', line 60

def list_emailthreads(options = {})
  get(emailthread_path, options)
end

#list_meetings(options = {}) ⇒ Object

Meeting Activities



124
125
126
# File 'lib/closeio/resources/activity.rb', line 124

def list_meetings(options = {})
  get(meeting_path, options)
end

#list_notes(options = {}) ⇒ Object

Note Activities



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

def list_notes(options = {})
  get(note_path, options)
end

#list_sms(options = {}) ⇒ Object

SMS Activities



100
101
102
# File 'lib/closeio/resources/activity.rb', line 100

def list_sms(options = {})
  get(sms_path, options)
end

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



88
89
90
# File 'lib/closeio/resources/activity.rb', line 88

def update_call(id, options = {})
  put("#{call_path}#{id}/", options)
end

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



48
49
50
# File 'lib/closeio/resources/activity.rb', line 48

def update_email(id, options = {})
  put("#{email_path}#{id}/", options)
end

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



24
25
26
# File 'lib/closeio/resources/activity.rb', line 24

def update_note(id, options = {})
  put("#{note_path}#{id}/", options)
end

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



112
113
114
# File 'lib/closeio/resources/activity.rb', line 112

def update_sms(id, options = {})
  put("#{sms_path}#{id}/", options)
end