Sha256: 27bbb960fe16d3db315f02c5ca0b22f22bbfc5e82c7857534bd2ee6ef7ece7a4

Contents?: true

Size: 639 Bytes

Versions: 1

Compression:

Stored size: 639 Bytes

Contents

# frozen_string_literal: true

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

    def check_semantically_consistent
      super

      each do |role|
        @organization_set.find_by_sourced_id(role.org_sourced_id)
        @user_set.find_by_sourced_id(role.user_sourced_id)

        if role.user_profile_sourced_id
          @user_profile_set.find_by_sourced_id(role.user_profile_sourced_id)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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