lib/zendesk_api/actions.rb
# 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 {}
Deletes a resource given the id passed in.
Deletes a resource given the id passed in .
def destroy(client, opts = {})
        @client = client 
        association = opts.delete(:association) || Association.new(:class => self)
        client.connection.delete(association.generate_path(opts)) do |req|
          req.params = opts
        end
        true
      end
def destroy ( client , opts = { } ) @client = client association = opts . delete ( :association ) || Association . new ( :class => self ) client . connection . delete ( association . generate_path ( opts ) ) do | req | req . params = opts end true end
Deletes a resource given the id passed in.
Deletes a resource given the id passed in .
# so we can use client.logger in rescue
client
<not_specific>
opts
<not_specific>
<not_specific>
opts The optional parameters to pass. Defaults to {}
opts The optional parameters to pass . Defaults to {}