Class: Mo2tex::IndividualCourse

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

#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

#academic_hoursObject



187
188
189
# File 'lib/mo2tex/course.rb', line 187

def academic_hours
	return (self.total_hours * 0.75)
end

#hours_done_per_lesson(dts, dte) ⇒ Object



191
192
193
# File 'lib/mo2tex/course.rb', line 191

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

#total_hoursObject



183
184
185
# File 'lib/mo2tex/course.rb', line 183

def total_hours
	return self.hours * self.num_students
end