Class: Ixtlan::UserManagement::User
- Inherits:
-
Object
- Object
- Ixtlan::UserManagement::User
- Includes:
- DataMapper::Resource, Virtus
- Defined in:
- lib/ixtlan/user_management/user_model.rb,
lib/ixtlan/user_management/user_resource.rb
Instance Attribute Summary collapse
-
#applications ⇒ Object
Returns the value of attribute applications.
-
#groups ⇒ Object
Returns the value of attribute groups.
Class Method Summary collapse
-
.base_model ⇒ Object
key for selectng the IdentityMap should remain this class if there is no single table inheritance with Discriminator in place i.e.
- .storage_name(arg) ⇒ Object
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ User
constructor
A new instance of User.
-
#set_timestamps_on_save ⇒ Object
do not record timestamps since they are set from outside.
- #to_s ⇒ Object
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
#applications ⇒ Object
Returns the value of attribute applications.
44 45 46 |
# File 'lib/ixtlan/user_management/user_resource.rb', line 44 def applications @applications end |
#groups ⇒ Object
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_model ⇒ Object
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_save ⇒ Object
do not record timestamps since they are set from outside
47 48 |
# File 'lib/ixtlan/user_management/user_resource.rb', line 47 def end |
#to_s ⇒ Object
50 51 52 |
# File 'lib/ixtlan/user_management/user_resource.rb', line 50 def to_s "User( #{name} <#{login}> )" end |