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_note(id) ⇒ Object
- #find_email(id) ⇒ Object
- #find_note(id) ⇒ Object
- #list_activities(options = {}) ⇒ Object
-
#list_calls(options = {}) ⇒ Object
Call Activities.
-
#list_emails(options = {}) ⇒ Object
Email Activities.
-
#list_notes(options = {}) ⇒ Object
Note Activities.
- #update_email(id, options = {}) ⇒ Object
- #update_note(id, options = {}) ⇒ Object
Instance Method Details
#create_call(options = {}) ⇒ Object
65 66 67 |
# File 'lib/closeio/resources/activity.rb', line 65 def create_call(={}) post(call_path, ) end |
#create_email(body) ⇒ Object
45 46 47 |
# File 'lib/closeio/resources/activity.rb', line 45 def create_email(body) post(email_path, body) end |
#create_note(options) ⇒ Object
21 22 23 |
# File 'lib/closeio/resources/activity.rb', line 21 def create_note() post(note_path, ) end |
#delete_call(id) ⇒ Object
69 70 71 |
# File 'lib/closeio/resources/activity.rb', line 69 def delete_call(id) delete("#{call_path}#{id}/") end |
#delete_email(id) ⇒ Object
53 54 55 |
# File 'lib/closeio/resources/activity.rb', line 53 def delete_email(id) delete("#{email_path}#{id}/") end |
#delete_note(id) ⇒ Object
29 30 31 |
# File 'lib/closeio/resources/activity.rb', line 29 def delete_note(id) delete("#{note_path}#{id}/") end |
#find_email(id) ⇒ Object
41 42 43 |
# File 'lib/closeio/resources/activity.rb', line 41 def find_email(id) get("#{email_path}#{id}/") end |
#find_note(id) ⇒ Object
17 18 19 |
# File 'lib/closeio/resources/activity.rb', line 17 def find_note(id) get("#{note_path}#{id}/") end |
#list_activities(options = {}) ⇒ Object
5 6 7 |
# File 'lib/closeio/resources/activity.rb', line 5 def list_activities(={}) get(activity_path, ) end |
#list_calls(options = {}) ⇒ Object
Call Activities
61 62 63 |
# File 'lib/closeio/resources/activity.rb', line 61 def list_calls(={}) get(call_path, ) end |
#list_emails(options = {}) ⇒ Object
Email Activities
37 38 39 |
# File 'lib/closeio/resources/activity.rb', line 37 def list_emails(={}) get(email_path, ) end |
#list_notes(options = {}) ⇒ Object
Note Activities
13 14 15 |
# File 'lib/closeio/resources/activity.rb', line 13 def list_notes(={}) get(note_path, ) end |
#update_email(id, options = {}) ⇒ Object
49 50 51 |
# File 'lib/closeio/resources/activity.rb', line 49 def update_email(id, ={}) put("#{email_path}#{id}/", ) end |
#update_note(id, options = {}) ⇒ Object
25 26 27 |
# File 'lib/closeio/resources/activity.rb', line 25 def update_note(id, ={}) put("#{note_path}#{id}/", ) end |