Sha256: 20d76949ca8267a163451f4f30f35c8fca9cf021d126ab560c8fd2c49d211d0f

Contents?: true

Size: 485 Bytes

Versions: 5

Compression:

Stored size: 485 Bytes

Contents

# frozen_string_literal: true

module Meibo
  class JapanProfile < ::Meibo::Profile
    class Organization < ::Meibo::Organization
      TYPES = {
        district: "district",
        school: "school"
      }.freeze

      DataModel.define(
        self,
        attribute_name_to_header_field_map: superclass.attribute_name_to_header_field_map,
        converters: superclass.converters.merge(
          enum: { type: TYPES.values.freeze }
        ).freeze
      )
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
meibo-0.21.0 lib/meibo/japan_profile/organization.rb
meibo-0.20.0 lib/meibo/japan_profile/organization.rb
meibo-0.19.0 lib/meibo/japan_profile/organization.rb
meibo-0.18.0 lib/meibo/japan_profile/organization.rb
meibo-0.17.0 lib/meibo/japan_profile/organization.rb