Class: CourseOffering

Inherits:
Object
  • Object
show all
Includes:
DataFactory, DateFactory, Foundry, StringFactory, Workflows
Defined in:
lib/sambal-kuali/data_objects/course_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 = {}) ⇒ CourseOffering

Returns a new instance of CourseOffering.



14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/sambal-kuali/data_objects/course_offering.rb', line 14

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

  defaults = {
      :term=>"20122",
      :course=>"ENGL103",
      :suffix=>"",
      :activity_offering_cluster_list=>[]
  }
  options = defaults.merge(opts)
  set_options(options)
end

Instance Attribute Details

#activity_offering_cluster_listObject

Returns the value of attribute activity_offering_cluster_list.



9
10
11
# File 'lib/sambal-kuali/data_objects/course_offering.rb', line 9

def activity_offering_cluster_list
  @activity_offering_cluster_list
end

#courseObject

Returns the value of attribute course.



9
10
11
# File 'lib/sambal-kuali/data_objects/course_offering.rb', line 9

def course
  @course
end

#suffixObject

Returns the value of attribute suffix.



9
10
11
# File 'lib/sambal-kuali/data_objects/course_offering.rb', line 9

def suffix
  @suffix
end

#termObject

Returns the value of attribute term.



9
10
11
# File 'lib/sambal-kuali/data_objects/course_offering.rb', line 9

def term
  @term
end

Instance Method Details

#manageObject



27
28
29
30
31
32
33
34
# File 'lib/sambal-kuali/data_objects/course_offering.rb', line 27

def manage
  go_to_manage_course_offerings
  on ManageCourseOfferings do |page|
    page.term.set @term
    page.input_code.set @course
    page.show
  end
end

#manage_registration_groupsObject



36
37
38
39
40
# File 'lib/sambal-kuali/data_objects/course_offering.rb', line 36

def manage_registration_groups
  on ManageCourseOfferings do |page|
    page.manage_registration_groups
  end
end