Module: Closeio::Client::BulkAction
- Included in:
- Closeio::Client
- Defined in:
- lib/closeio/resources/bulk_action.rb
Instance Method Summary collapse
- #bulk_delete(options = {}) ⇒ Object
- #bulk_edit(options = {}) ⇒ Object
- #list_bulk_emails ⇒ Object
- #send_bulk_email(options = {}) ⇒ Object
Instance Method Details
#bulk_delete(options = {}) ⇒ Object
12 13 14 |
# File 'lib/closeio/resources/bulk_action.rb', line 12 def bulk_delete( = {}) post("#{bulk_action_path}delete/", ) 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( = {}) # 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/", ) end |
#list_bulk_emails ⇒ Object
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( = {}) post("#{bulk_action_path}email/", ) end |