Class: Ixtlan::UserManagement::User

Inherits:
Object
  • Object
show all
Includes:
DataMapper::Resource, Virtus
Defined in:
lib/ixtlan/user_management/user_model.rb,
lib/ixtlan/user_management/user_resource.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ User

Returns a new instance of User.



31
32
33
# File 'lib/ixtlan/user_management/user_model.rb', line 31

def initialize( params = {} )
  super params[ 'user' ] || params
end

Instance Attribute Details

#applicationsObject

Returns the value of attribute applications.



44
45
46
# File 'lib/ixtlan/user_management/user_resource.rb', line 44

def applications
  @applications
end

#groupsObject

Returns the value of attribute groups.



44
45
46
# File 'lib/ixtlan/user_management/user_resource.rb', line 44

def groups
  @groups
end

Class Method Details

.base_modelObject

key for selectng the IdentityMap should remain this class if there is no single table inheritance with Discriminator in place i.e. the subclass used as key for the IdentityMap



34
35
36
# File 'lib/ixtlan/user_management/user_resource.rb', line 34

def self.base_model
  self
end

.storage_name(arg) ⇒ Object



27
28
29
# File 'lib/ixtlan/user_management/user_resource.rb', line 27

def self.storage_name(arg)
  'ixtlan_users'
end

Instance Method Details

#set_timestamps_on_saveObject

do not record timestamps since they are set from outside



47
48
# File 'lib/ixtlan/user_management/user_resource.rb', line 47

def set_timestamps_on_save
end

#to_sObject



50
51
52
# File 'lib/ixtlan/user_management/user_resource.rb', line 50

def to_s
  "User( #{name} <#{}> )"
end