Class: ZendeskAPI::Setting

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

Instance Attribute Summary collapse

Attributes inherited from Data

#association, #attributes

Instance Method Summary collapse

Methods included from Verbs

#delete, #post, #put

Methods inherited from Data

#==, #id, #method_missing, #new_record?, only_send_unnested_params, #path, resource_name, singular_resource_name, #to_s, unnested_params

Methods included from Associations

#wrap_resource

Constructor Details

#initialize(client, attributes = {}) ⇒ Setting

Returns a new instance of Setting.



10
11
12
13
# File 'lib/zendesk_api/resources/misc.rb', line 10

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

#onObject (readonly)

Returns the value of attribute on.



8
9
10
# File 'lib/zendesk_api/resources/misc.rb', line 8

def on
  @on
end