Class: Personnel

Inherits:
Object
  • Object
show all
Includes:
DataFactory, DateFactory, Foundry, StringFactory, Workflows
Defined in:
lib/sambal-kuali/data_objects/activity_offering.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Workflows

#go_to_academic_calendar, #go_to_calendar_search, #go_to_create_course_offerings, #go_to_create_population, #go_to_display_schedule_of_classes, #go_to_holiday_calendar, #go_to_manage_course_offerings, #go_to_manage_population, #go_to_perform_rollover, #go_to_rollover_details, #log_in, #logged_in_user

Constructor Details

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

Returns a new instance of Personnel.



342
343
344
345
346
347
348
349
350
351
352
# File 'lib/sambal-kuali/data_objects/activity_offering.rb', line 342

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

  defaults = {
      :id => "admin",
      :affiliation => "Instructor",
      :inst_effort => 50
  }
  options = defaults.merge(opts)
  set_options(options)
end

Instance Attribute Details

#affiliationObject

Returns the value of attribute affiliation.



338
339
340
# File 'lib/sambal-kuali/data_objects/activity_offering.rb', line 338

def affiliation
  @affiliation
end

#idObject

Returns the value of attribute id.



338
339
340
# File 'lib/sambal-kuali/data_objects/activity_offering.rb', line 338

def id
  @id
end

#inst_effortObject

Returns the value of attribute inst_effort.



338
339
340
# File 'lib/sambal-kuali/data_objects/activity_offering.rb', line 338

def inst_effort
  @inst_effort
end

Instance Method Details

#add_personnelObject



354
355
356
357
358
359
360
361
# File 'lib/sambal-kuali/data_objects/activity_offering.rb', line 354

def add_personnel
  on ActivityOfferingMaintenance do |page|
    page.add_person_id.set @id
    page.add_affiliation.select @affiliation
    page.add_inst_effort.set @inst_effort
    page.add_personnel
  end
end