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



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

def create_call(options={})
  post(call_path, options)
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(options)
  post(note_path, options)
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(options={})
  get(activity_path, options)
end

#list_calls(options = {}) ⇒ Object

Call Activities



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

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

#list_emails(options = {}) ⇒ Object

Email Activities



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

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

#list_notes(options = {}) ⇒ Object

Note Activities



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

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

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



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

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

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



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

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