Class: ZendeskAPI::Setting

Inherits:
DataResource show all
Defined in:
lib/zendesk_api/resources.rb

Instance Attribute Summary (collapse)

Attributes inherited from DataResource

#error, #error_message

Attributes inherited from Data

#association, #attributes, #response

Instance Method Summary (collapse)

Methods included from Verbs

#delete, #post, #put

Methods inherited from Data

#/, #==, format, #id, #method_missing, #new_record?, #path, resource_name, singular_resource_name, subclasses, #to_json

Constructor Details

- (Setting) initialize(client, attributes = {})

A new instance of Setting



137
138
139
140
# File 'lib/zendesk_api/resources.rb', line 137

def initialize(client, attributes = {})
  @on = attributes.first
  super(client, attributes[1])
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ZendeskAPI::Data

Instance Attribute Details

- (Object) on (readonly)

Returns the value of attribute on



135
136
137
# File 'lib/zendesk_api/resources.rb', line 135

def on
  @on
end