Module: ZendeskAPI::Verbs
Overview
Creates put, post, delete class methods for custom resource methods.
Instance Method Summary collapse
-
#delete(method) ⇒ Object
Executes a delete using the passed in method as a path.
-
#post(method) ⇒ Object
Executes a post using the passed in method as a path.
-
#put(method) ⇒ Object
Executes a put using the passed in method as a path.
Instance Method Details
#delete(method) ⇒ Object
Executes a delete using the passed in method as a path. Reloads the resource’s attributes if any are in the response body.
Created method takes an optional options hash. Valid options to be passed in to the created method: reload (for caching, default: false)
41 |
# File 'lib/zendesk_api/verbs.rb', line 41 create_verb :delete |
#post(method) ⇒ Object
Executes a post using the passed in method as a path. Reloads the resource’s attributes if any are in the response body.
Created method takes an optional options hash. Valid options to be passed in to the created method: reload (for caching, default: false)
40 |
# File 'lib/zendesk_api/verbs.rb', line 40 create_verb :post |
#put(method) ⇒ Object
Executes a put using the passed in method as a path. Reloads the resource’s attributes if any are in the response body.
Created method takes an optional options hash. Valid options to be passed in to the created method: reload (for caching, default: false)
39 |
# File 'lib/zendesk_api/verbs.rb', line 39 create_verb :put |