Module: ZendeskAPI::Destroy::ClassMethod
- Defined in:
- lib/zendesk_api/actions.rb
Instance Method Summary collapse
-
#destroy(client, attributes = {}) ⇒ Object
Destroys, returning false on error.
-
#destroy!(client, opts = {}) ⇒ Object
Deletes a resource given the id passed in.
Instance Method Details
#destroy(client, attributes = {}) ⇒ Object
Destroys, returning false on error.
259 260 261 262 263 |
# File 'lib/zendesk_api/actions.rb', line 259 def destroy(client, attributes = {}, &) destroy!(client, attributes, &) rescue ZendeskAPI::Error::ClientError false end |
#destroy!(client, opts = {}) ⇒ Object
Deletes a resource given the id passed in.
252 253 254 255 256 |
# File 'lib/zendesk_api/actions.rb', line 252 def destroy!(client, opts = {}, &) new(client, opts).destroy!(&) true end |