Method: RoleObject#initialize

Defined in:
lib/kuality-coeus/data_objects/identity/role.rb

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

Returns a new instance of RoleObject.



48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/kuality-coeus/data_objects/identity/role.rb', line 48

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

  defaults = {
      description:      random_alphanums,
      type:             'Unit',
      name:             random_alphanums,
      namespace:        'KC-UNT - Kuali Coeus - Department',
      assignees:        collection('RoleAssignees'),
      permissions:      [],
      responsibilities: [],
      # TODO: Add this when needed:
      #delegations:      collection('Delegation')
  }

  set_options(defaults.merge(opts))
end