Sha256: 12370eae0e2000916c17a8fda529b4526f28089077dc83be0d6a1263e0cae4e1

Contents?: true

Size: 362 Bytes

Versions: 3

Compression:

Stored size: 362 Bytes

Contents

# frozen_string_literal: true

module Meibo
  module JapanProfile
    class OrganizationSet < ::Meibo::OrganizationSet
      def check_semantically_consistent
        super

        each do |organization|
          next unless organization.parent_sourced_id

          raise InvalidDataTypeError if organization.district?
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
meibo-0.27.1 lib/meibo/japan_profile/organization_set.rb
meibo-0.27.0 lib/meibo/japan_profile/organization_set.rb
meibo-0.26.0 lib/meibo/japan_profile/organization_set.rb