class SIF::Model::Group::SIS::SectionInfo
Public Instance Methods
first_nonblank_schedule_info()
click to toggle source
# File lib/sif/models/groups/sis/section_info.rb, line 32 def first_nonblank_schedule_info schedule_infos.find { |si| !si.teachers.empty? } end
first_schedule_info()
click to toggle source
# File lib/sif/models/groups/sis/section_info.rb, line 28 def first_schedule_info schedule_infos.first end
schedule_info()
click to toggle source
# File lib/sif/models/groups/sis/section_info.rb, line 36 def schedule_info first_nonblank_schedule_info || first_schedule_info || Common::ScheduleInfo.new end
schedule_info_for_term(term_info_ref_id)
click to toggle source
# File lib/sif/models/groups/sis/section_info.rb, line 22 def schedule_info_for_term(term_info_ref_id) schedule_infos.find do |si| si.term_info_ref_id == term_info_ref_id end || Common::ScheduleInfo.new end
teacher()
click to toggle source
# File lib/sif/models/groups/sis/section_info.rb, line 44 def teacher schedule_info.teacher end
term_info_ref_id()
click to toggle source
# File lib/sif/models/groups/sis/section_info.rb, line 40 def term_info_ref_id schedule_info.term_info_ref_id end