Class: GroupAssigneeObject

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Navigation

#doc_search, #fill_out, #fill_out_item, #on_document?, #on_page?, #open_document, #window_cleanup

Methods included from Utilities

#get, #make_role, #make_user, #random_percentage, #set, #snake_case

Constructor Details

#initialize(browser, opts = {}) ⇒ GroupAssigneeObject

Returns a new instance of GroupAssigneeObject.



10
11
12
13
14
15
16
17
18
19
# File 'lib/kuality-coeus/data_objects/identity/group_assignee.rb', line 10

def initialize(browser, opts={})
  @browser = browser

  defaults = {
    type_code: 'Principal'
  }

  set_options(defaults.merge(opts))
  requires :member_identifier
end

Instance Attribute Details

#member_identifierObject

Returns the value of attribute member_identifier.



8
9
10
# File 'lib/kuality-coeus/data_objects/identity/group_assignee.rb', line 8

def member_identifier
  @member_identifier
end

#type_codeObject

Returns the value of attribute type_code.



8
9
10
# File 'lib/kuality-coeus/data_objects/identity/group_assignee.rb', line 8

def type_code
  @type_code
end

Instance Method Details

#createObject



21
22
23
24
25
26
27
28
# File 'lib/kuality-coeus/data_objects/identity/group_assignee.rb', line 21

def create
  on Group do |page|
    page.description.set random_alphanums
    fill_out page, :type_code, :member_identifier
    page.add_member
    page.blanket_approve
  end
end