module ZendeskAPI::Destroy::ClassMethod
Public Instance Methods
destroy(client, attributes = {}, &block)
click to toggle source
Destroys, returning false on error.
# File lib/zendesk_api/actions.rb, line 259 def destroy(client, attributes = {}, &block) destroy!(client, attributes, &block) rescue ZendeskAPI::Error::ClientError false end
destroy!(client, opts = {}, &block)
click to toggle source
Deletes a resource given the id passed in. @param [Client] client The {Client} object to be used @param [Hash] opts The optional parameters to pass. Defaults to {}
# File lib/zendesk_api/actions.rb, line 252 def destroy!(client, opts = {}, &block) new(client, opts).destroy!(&block) true end