Class: Meibo::CourseSet
Instance Attribute Summary
Attributes inherited from DataSet
Instance Method Summary collapse
Methods inherited from DataSet
#<<, #each, #empty?, #find, #initialize, #lineno, #where
Constructor Details
This class inherits a constructor from Meibo::DataSet
Instance Method Details
#check_semantically_consistent ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/meibo/course_set.rb', line 5 def check_semantically_consistent super each do |course| if course.school_year_sourced_id school_year = roster.academic_sessions.find(course.school_year_sourced_id) raise InvalidDataTypeError unless school_year.school_year? end roster.organizations.find(course.org_sourced_id) end end |