Class: SIF::Model::Group::SIS::SectionInfo
- Inherits:
-
Object
- Object
- SIF::Model::Group::SIS::SectionInfo
show all
- Includes:
- SISRepresenter
- Defined in:
- lib/sif/models/groups/sis/section_info.rb
Instance Method Summary
collapse
#find_element, #password, #username
Instance Method Details
#first_schedule_info ⇒ Object
28
29
30
|
# File 'lib/sif/models/groups/sis/section_info.rb', line 28
def first_schedule_info
schedule_infos.first || Common::ScheduleInfo.new
end
|
#schedule_info_for_term(term_info_ref_id) ⇒ Object
22
23
24
25
26
|
# 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
|
36
37
38
|
# File 'lib/sif/models/groups/sis/section_info.rb', line 36
def teacher
first_schedule_info.first_teacher if first_schedule_info.first_teacher
end
|
#term_info_ref_id ⇒ Object
32
33
34
|
# File 'lib/sif/models/groups/sis/section_info.rb', line 32
def term_info_ref_id
first_schedule_info.term_info_ref_id
end
|