Class: ZendeskAPI::User

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

Defined Under Namespace

Classes: Identity

Instance Attribute Summary

Attributes inherited from Data

#association, #attributes

Instance Method Summary collapse

Methods included from Read

#find

Methods included from Destroy

#destroy, #destroyed?

Methods included from Save

#clear_associations, #save, #save!, #save_associations

Methods included from Verbs

#delete, #post, #put

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

#wrap_resource

Constructor Details

#initializeUser

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