Class: Personnel
- Inherits:
-
Object
- Object
- Personnel
- Includes:
- DataFactory, DateFactory, Foundry, StringFactory, Workflows
- Defined in:
- lib/sambal-kuali/data_objects/activity_offering.rb
Instance Attribute Summary collapse
-
#affiliation ⇒ Object
Returns the value of attribute affiliation.
-
#id ⇒ Object
Returns the value of attribute id.
-
#inst_effort ⇒ Object
Returns the value of attribute inst_effort.
Instance Method Summary collapse
- #add_personnel ⇒ Object
-
#initialize(browser, opts = {}) ⇒ Personnel
constructor
A new instance of Personnel.
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 } = defaults.merge(opts) () end |
Instance Attribute Details
#affiliation ⇒ Object
Returns the value of attribute affiliation.
338 339 340 |
# File 'lib/sambal-kuali/data_objects/activity_offering.rb', line 338 def affiliation @affiliation end |
#id ⇒ Object
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_effort ⇒ Object
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_personnel ⇒ Object
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 |