Class: ZendeskAPI::User
- Inherits:
-
Resource
- Object
- Data
- DataResource
- Resource
- ZendeskAPI::User
- Defined in:
- lib/zendesk_api/resources/user.rb
Defined Under Namespace
Classes: Identity
Instance Attribute Summary
Attributes inherited from Data
Instance Method Summary collapse
-
#initialize ⇒ User
constructor
A new instance of User.
Methods included from Read
Methods included from Destroy
Methods included from Save
#clear_associations, #save, #save!, #save_associations
Methods included from Verbs
Methods inherited from Data
#==, #id, #loaded_associations, #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 ⇒ User
Returns a new instance of User.
20 21 22 23 24 25 |
# File 'lib/zendesk_api/resources/user.rb', line 20 def initialize(*) super # Needed for side-loading to work self.role_id = role.id if self.key?(:role) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ZendeskAPI::Data