Class: AssigneeObject
- Inherits:
-
Object
- Object
- AssigneeObject
- Includes:
- DataFactory, Foundry, Navigation, StringFactory
- Defined in:
- lib/kuality-coeus/page_objects/identity/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.
Instance Method Summary collapse
- #create ⇒ Object
-
#initialize(browser, opts = {}) ⇒ AssigneeObject
constructor
A new instance of AssigneeObject.
Methods included from Navigation
#doc_search, #fill_out, #fill_out_item, #on_document?, #on_page?, #open_document
Methods included from Utilities
#get, #make_user, #random_percentage, #set, #snake_case
Constructor Details
#initialize(browser, opts = {}) ⇒ AssigneeObject
Returns a new instance of AssigneeObject.
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/kuality-coeus/page_objects/identity/assignee.rb', line 10 def initialize(browser, opts={}) @browser = browser defaults = { type_code: 'Principal' } (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/page_objects/identity/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/page_objects/identity/assignee.rb', line 8 def type_code @type_code end |
Instance Method Details
#create ⇒ Object
21 22 23 24 25 26 27 28 |
# File 'lib/kuality-coeus/page_objects/identity/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.save end end |