Class: UserGroupObject
- Inherits:
-
Object
- Object
- UserGroupObject
- Includes:
- DataFactory, Foundry, StringFactory
- Defined in:
- lib/kuality-coeus/data_objects/user/user_group.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#user_name ⇒ Object
Returns the value of attribute user_name.
Instance Method Summary collapse
-
#create ⇒ Object
All navigation is done in the parent, UserObject.
-
#initialize(browser, opts = {}) ⇒ UserGroupObject
constructor
A new instance of UserGroupObject.
Constructor Details
#initialize(browser, opts = {}) ⇒ UserGroupObject
Returns a new instance of UserGroupObject.
9 10 11 12 13 14 15 16 17 |
# File 'lib/kuality-coeus/data_objects/user/user_group.rb', line 9 def initialize(browser, opts={}) @browser = browser defaults = { } defaults.merge(opts) requires :user_name end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/kuality-coeus/data_objects/user/user_group.rb', line 7 def id @id end |
#user_name ⇒ Object
Returns the value of attribute user_name.
7 8 9 |
# File 'lib/kuality-coeus/data_objects/user/user_group.rb', line 7 def user_name @user_name end |
Instance Method Details
#create ⇒ Object
All navigation is done in the parent, UserObject. IMPORTANT: This includes saving the changes!
21 22 23 24 25 26 |
# File 'lib/kuality-coeus/data_objects/user/user_group.rb', line 21 def create on Person do |create| create.group_id.set @id create.add_group end end |