Class: Meibo::JapanProfile::OrganizationSet

Inherits:
OrganizationSet show all
Defined in:
lib/meibo/japan_profile/organization_set.rb

Instance Attribute Summary

Attributes inherited from DataSet

#roster

Instance Method Summary collapse

Methods inherited from OrganizationSet

#department, #district, #local, #national, #school, #state

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_consistentObject



6
7
8
9
10
11
12
13
14
# File 'lib/meibo/japan_profile/organization_set.rb', line 6

def check_semantically_consistent
  super

  each do |organization|
    next unless organization.parent_sourced_id

    raise InvalidDataTypeError if organization.district?
  end
end