Class: Mo2tex::CollectiveCourse

Inherits:
Course
  • Object
show all
Defined in:
lib/mo2tex/course.rb

Instance Attribute Summary

Attributes inherited from Course

#dur, #events, #excl_mgr, #freq, #hours, #hours_done, #online, #real_type, #start, #students, #students_fc, #title, #type, #warnings, #wday, #when, #where

Instance Method Summary collapse

Methods inherited from Course

#academic_hours, #all_students, #course_dur_in_seconds, create, #generate, #initialize, #lesson_dur_in_seconds, #num_students, #number_of_lessons

Methods included from CourseHelper

#normalize_title

Constructor Details

This class inherits a constructor from Mo2tex::Course

Instance Method Details

#hours_done_per_lesson(dts, dte) ⇒ Object



175
176
177
# File 'lib/mo2tex/course.rb', line 175

def hours_done_per_lesson(dts, dte)
  return (dte - dts).to_f * 24.0
end

#total_hoursObject



171
172
173
# File 'lib/mo2tex/course.rb', line 171

def total_hours
	return self.hours
end