Class: UserGroupObject

Inherits:
Object
  • Object
show all
Includes:
DataFactory, Foundry, StringFactory
Defined in:
lib/kuality-coeus/data_objects/user/user_group.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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 = {

  }
  set_options defaults.merge(opts)
  requires :user_name
end

Instance Attribute Details

#idObject

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_nameObject

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

#createObject

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