class SIF::Model::Common::ScheduleInfo
Public Instance Methods
first_meeting_time()
click to toggle source
# File lib/sif/models/common/schedule_info.rb, line 12 def first_meeting_time meeting_times.first || Common::MeetingTime.new end
first_nonblank_teacher()
click to toggle source
# File lib/sif/models/common/schedule_info.rb, line 20 def first_nonblank_teacher teachers.find{ |t| !t.nil? and !t.empty? } end
first_teacher()
click to toggle source
# File lib/sif/models/common/schedule_info.rb, line 16 def first_teacher teachers.first end
teacher()
click to toggle source
# File lib/sif/models/common/schedule_info.rb, line 24 def teacher first_nonblank_teacher || first_teacher || String.new end