Sha256: 9edd3164984918bbaead7c1492021a09a0b9b59ef00ffd512d1f3a964d36d381

Contents?: true

Size: 598 Bytes

Versions: 1

Compression:

Stored size: 598 Bytes

Contents

# frozen_string_literal: true

module Meibo
  class EnrollmentSet < DataSet
    def initialize(data, classroom_set:, organization_set:, user_set:)
      super(data)
      @classroom_set = classroom_set
      @organization_set = organization_set
      @user_set = user_set
    end

    def check_semantically_consistent
      super

      each do |enrollment|
        @classroom_set.find_by_sourced_id(enrollment.class_sourced_id)
        @organization_set.find_by_sourced_id(enrollment.school_sourced_id)
        @user_set.find_by_sourced_id(enrollment.user_sourced_id)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
meibo-0.1.0 lib/meibo/enrollment_set.rb