Sha256: e46d9cf8dc824871f25427fb8ce49d7110999c34d11c84b17ac93518d6996028

Contents?: true

Size: 440 Bytes

Versions: 3

Compression:

Stored size: 440 Bytes

Contents

# frozen_string_literal: true

module Meibo
  class CourseSet < DataSet
    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
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
meibo-0.27.1 lib/meibo/course_set.rb
meibo-0.27.0 lib/meibo/course_set.rb
meibo-0.26.0 lib/meibo/course_set.rb