Module: ZendeskAPI::Verbs

Included in:
DataResource
Defined in:
lib/zendesk_api/verbs.rb

Overview

Creates put, post, delete class methods for custom resource methods.

Instance Method Summary collapse

Instance Method Details

#any(method) ⇒ Object

Executes a any 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)



63
# File 'lib/zendesk_api/verbs.rb', line 63

create_verb :any

#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)



62
# File 'lib/zendesk_api/verbs.rb', line 62

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)



61
# File 'lib/zendesk_api/verbs.rb', line 61

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)



60
# File 'lib/zendesk_api/verbs.rb', line 60

create_verb :put