Module: Supercast::Operations::Destroy::ClassMethods

Defined in:
lib/supercast/operations/destroy.rb

Instance Method Summary collapse

Instance Method Details

#destroy(id, params = {}, opts = {}) ⇒ Object

Deletes an API resource

Deletes the identified resource with the passed in parameters.

Attributes

  • id - ID of the resource to delete.

  • params - A hash of parameters to pass to the API

  • opts - A Hash of additional options (separate from the params / object values) to be added to the request.



17
18
19
20
# File 'lib/supercast/operations/destroy.rb', line 17

def destroy(id, params = {}, opts = {})
  request(:delete, "#{resource_url}/#{id}", params, opts)
  true
end