Module: Closeio::Client::BulkAction

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

Instance Method Summary collapse

Instance Method Details

#bulk_delete(options = {}) ⇒ Object



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

def bulk_delete(options={})
  post("#{bulk_action_path}delete/", options)
end

#bulk_edit(options = {}) ⇒ Object



17
18
19
20
21
22
23
24
# File 'lib/closeio/resources/bulk_action.rb', line 17

def bulk_edit(options={})
  # query: search query for the edit
  # type:
  #        set_lead_status: lead_status_id
  #        clear_custom_field: custom_field_name
  #        set_custom_field: custom_field_name, custom_field_value
  post("#{bulk_action_path}edit/", options)
end

#list_bulk_emailsObject



5
6
7
# File 'lib/closeio/resources/bulk_action.rb', line 5

def list_bulk_emails
  get(bulk_action_path)
end

#send_bulk_email(options = {}) ⇒ Object



9
10
11
# File 'lib/closeio/resources/bulk_action.rb', line 9

def send_bulk_email(options={})
  post("#{bulk_action_path}email/", options)
end