Class: ZendeskAPI::DataResource

Inherits:
Data
  • Object
show all
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)

Class Method Summary (collapse)

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

Returns:

  • (ZendeskAPI::Association)

    The association

- (Hash) attributes (readonly) Also known as: to_param Originally defined in class Data

The resource's attributes

Returns:

  • (Hash)

    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
  @error_message
end

- (Array) errors Originally defined in class Data

The last received errors

Returns:

  • (Array)

    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)