Class: Ixtlan::Models::GroupUser
- Inherits:
-
Object
- Object
- Ixtlan::Models::GroupUser
- Includes:
- DataMapper::Resource
- Defined in:
- lib/ixtlan/models/group_user.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.default_storage_name ⇒ Object
6 7 8 |
# File 'lib/ixtlan/models/group_user.rb', line 6 def self.default_storage_name "GroupUser" end |
Instance Method Details
#group ⇒ Object
22 23 24 |
# File 'lib/ixtlan/models/group_user.rb', line 22 def group Object.full_const_get(Models::GROUP).get!(gidnumber) end |
#group=(group) ⇒ Object
26 27 28 |
# File 'lib/ixtlan/models/group_user.rb', line 26 def group=(group) gidnumber = group.id end |
#user ⇒ Object
30 31 32 |
# File 'lib/ixtlan/models/group_user.rb', line 30 def user Object.full_const_get(Models::USER).first(:login => memberuid) end |
#user=(user) ⇒ Object
34 35 36 |
# File 'lib/ixtlan/models/group_user.rb', line 34 def user=(user) memberuid = user.login end |