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



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

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

#bulk_edit(options = {}) ⇒ Object



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

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



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

def list_bulk_emails
  get(bulk_action_path)
end

#send_bulk_email(options = {}) ⇒ Object



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

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