Module: ZendeskAPI::DestroyMany
- Included in:
- GroupMembership, OrganizationMembership, Ticket, User
- Defined in:
- lib/zendesk_api/actions.rb
Instance Method Summary collapse
-
#destroy_many!(client, ids, association = Association.new(:class => self)) ⇒ JobStatus
Destroys multiple resources using the destroy_many endpoint.
Instance Method Details
#destroy_many!(client, ids, association = Association.new(:class => self)) ⇒ JobStatus
Destroys multiple resources using the destroy_many endpoint.
237 238 239 240 241 242 243 244 245 |
# File 'lib/zendesk_api/actions.rb', line 237 def destroy_many!(client, ids, association = Association.new(:class => self)) response = client.connection.delete("#{association.generate_path}/destroy_many") do |req| req.params = { :ids => ids.join(',') } yield req if block_given? end JobStatus.new_from_response(client, response) end |