Class: ZendeskAPI::Setting
- Inherits:
-
DataResource
- Object
- Data
- DataResource
- ZendeskAPI::Setting
- Defined in:
- lib/zendesk_api/resources/misc.rb
Instance Attribute Summary collapse
-
#on ⇒ Object
readonly
Returns the value of attribute on.
Attributes inherited from Data
Instance Method Summary collapse
-
#initialize(client, attributes = {}) ⇒ Setting
constructor
A new instance of Setting.
Methods included from Verbs
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
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
#on ⇒ Object (readonly)
Returns the value of attribute on.
8 9 10 |
# File 'lib/zendesk_api/resources/misc.rb', line 8 def on @on end |