Module: Closeio::Client::Activity
- Included in:
- Closeio::Client
- Defined in:
- lib/closeio/resources/activity.rb
Instance Method Summary collapse
- #create_call(options = {}) ⇒ Object
- #create_email(body) ⇒ Object
- #create_note(options) ⇒ Object
- #delete_call(id) ⇒ Object
- #delete_email(id) ⇒ Object
- #delete_emailthread(id) ⇒ Object
- #delete_note(id) ⇒ Object
- #find_email(id) ⇒ Object
- #find_emailthread(id) ⇒ Object
- #find_note(id) ⇒ Object
- #list_activities(options = {}) ⇒ Object
-
#list_calls(options = {}) ⇒ Object
Call Activities.
-
#list_emails(options = {}) ⇒ Object
Email Activities.
-
#list_emailthreads(options = {}) ⇒ Object
EmailThread Activities.
-
#list_notes(options = {}) ⇒ Object
Note Activities.
- #update_email(id, options = {}) ⇒ Object
- #update_note(id, options = {}) ⇒ Object
Instance Method Details
#create_call(options = {}) ⇒ Object
80 81 82 |
# File 'lib/closeio/resources/activity.rb', line 80 def create_call( = {}) post(call_path, ) 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() post(note_path, ) end |
#delete_call(id) ⇒ Object
84 85 86 |
# File 'lib/closeio/resources/activity.rb', line 84 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 |
#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 |
#list_activities(options = {}) ⇒ Object
4 5 6 |
# File 'lib/closeio/resources/activity.rb', line 4 def list_activities( = {}) get(activity_path, ) end |
#list_calls(options = {}) ⇒ Object
Call Activities
76 77 78 |
# File 'lib/closeio/resources/activity.rb', line 76 def list_calls( = {}) get(call_path, ) end |
#list_emails(options = {}) ⇒ Object
Email Activities
36 37 38 |
# File 'lib/closeio/resources/activity.rb', line 36 def list_emails( = {}) get(email_path, ) end |
#list_emailthreads(options = {}) ⇒ Object
EmailThread Activities
60 61 62 |
# File 'lib/closeio/resources/activity.rb', line 60 def list_emailthreads( = {}) get(emailthread_path, ) end |
#list_notes(options = {}) ⇒ Object
Note Activities
12 13 14 |
# File 'lib/closeio/resources/activity.rb', line 12 def list_notes( = {}) get(note_path, ) end |
#update_email(id, options = {}) ⇒ Object
48 49 50 |
# File 'lib/closeio/resources/activity.rb', line 48 def update_email(id, = {}) put("#{email_path}#{id}/", ) end |
#update_note(id, options = {}) ⇒ Object
24 25 26 |
# File 'lib/closeio/resources/activity.rb', line 24 def update_note(id, = {}) put("#{note_path}#{id}/", ) end |