Class: RoleAssigneeObject
- Inherits:
-
Object
- Object
- RoleAssigneeObject
- Includes:
- DataFactory, Foundry, Navigation, StringFactory
- Defined in:
- lib/kuality-coeus/data_objects/identity/role_assignee.rb
Instance Attribute Summary collapse
-
#member_identifier ⇒ Object
Returns the value of attribute member_identifier.
-
#type_code ⇒ Object
Returns the value of attribute type_code.
-
#unit_number ⇒ Object
Returns the value of attribute unit_number.
Instance Method Summary collapse
- #create ⇒ Object
-
#initialize(browser, opts = {}) ⇒ RoleAssigneeObject
constructor
A new instance of RoleAssigneeObject.
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 = {}) ⇒ RoleAssigneeObject
Returns a new instance of RoleAssigneeObject.
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/kuality-coeus/data_objects/identity/role_assignee.rb', line 10 def initialize(browser, opts={}) @browser = browser defaults = { type_code: 'Principal', unit_number: '000001' } (defaults.merge(opts)) requires :member_identifier end |
Instance Attribute Details
#member_identifier ⇒ Object
Returns the value of attribute member_identifier.
8 9 10 |
# File 'lib/kuality-coeus/data_objects/identity/role_assignee.rb', line 8 def member_identifier @member_identifier end |
#type_code ⇒ Object
Returns the value of attribute type_code.
8 9 10 |
# File 'lib/kuality-coeus/data_objects/identity/role_assignee.rb', line 8 def type_code @type_code end |
#unit_number ⇒ Object
Returns the value of attribute unit_number.
8 9 10 |
# File 'lib/kuality-coeus/data_objects/identity/role_assignee.rb', line 8 def unit_number @unit_number end |
Instance Method Details
#create ⇒ Object
22 23 24 25 26 27 28 29 30 31 |
# File 'lib/kuality-coeus/data_objects/identity/role_assignee.rb', line 22 def create on Role do |page| page.description.set random_alphanums page.assignee_type_code.select @type_code page.assignee_id.set @member_identifier page.assignee_unit_number.set @unit_number page.add_assignee page.blanket_approve end end |