Class: ZendeskAPI::DataResource
- Inherits:
-
Data
- Object
- Data
- ZendeskAPI::DataResource
- Extended by:
- Verbs
- Defined in:
- lib/zendesk_api/resource.rb
Overview
Indexable resource
Direct Known Subclasses
Ability, CRMData, CRMDataStatus, CreateResource, CustomRole, DeleteResource, ReadResource, Resource, Role, Setting, Ticket::Audit, TicketMetric, UpdateResource, ViewCount, ViewRow
Instance Attribute Summary (collapse)
-
- (ZendeskAPI::Association) association
inherited
from Data
The association.
-
- (Hash) attributes
(also: #to_param)
inherited
from Data
readonly
The resource's attributes.
-
- (Object) error
Returns the value of attribute error.
-
- (Object) error_message
Returns the value of attribute error_message.
-
- (Array) errors
inherited
from Data
The last received errors.
-
- (Object) response
inherited
from Data
Place to dump the last response.
Class Method Summary (collapse)
-
+ (Object) delete(method)
extended
from Verbs
Executes a delete using the passed in method as a path.
-
+ (Object) post(method)
extended
from Verbs
Executes a post using the passed in method as a path.
-
+ (Object) put(method)
extended
from Verbs
Executes a put using the passed in method as a path.
Constructor Details
This class inherits a constructor from ZendeskAPI::Data
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ZendeskAPI::Data
Instance Attribute Details
- (ZendeskAPI::Association) association Originally defined in class Data
The association
- (Hash) attributes (readonly) Also known as: to_param Originally defined in class Data
The resource's attributes
- (Object) error
Returns the value of attribute error
158 159 160 |
# File 'lib/zendesk_api/resource.rb', line 158 def error @error end |
- (Object) error_message
Returns the value of attribute error_message
158 159 160 |
# File 'lib/zendesk_api/resource.rb', line 158 def @error_message end |
- (Array) errors Originally defined in class Data
The last received errors
- (Object) response Originally defined in class Data
Place to dump the last response
Class Method Details
+ (Object) delete(method) Originally defined in module Verbs
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)
+ (Object) post(method) Originally defined in module Verbs
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)
+ (Object) put(method) Originally defined in module Verbs
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)