Sha256: 849c7d54e3bc55a7986b648d5232e60c43d9a1e166f9cf597da8c5e5d0137001

Contents?: true

Size: 662 Bytes

Versions: 15

Compression:

Stored size: 662 Bytes

Contents

# frozen_string_literal: true

module Meibo
  class JapanProfile < ::Meibo::Profile
    class Classroom < ::Meibo::Classroom
      DataModel.define(
        self,
        attribute_name_to_header_field_map: superclass.attribute_name_to_header_field_map.merge(
          special_needs: 'metadata.jp.specialNeeds'
        ).freeze,
        converters: superclass.converters.merge(
          boolean: [:special_needs].freeze,
          enum: { class_type: TYPES.values.freeze }.freeze
        ).freeze
      )

      def initialize(special_needs: nil, **other_fields)
        super(**other_fields)
        @special_needs = special_needs
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
meibo-0.16.0 lib/meibo/japan_profile/classroom.rb
meibo-0.15.0 lib/meibo/japan_profile/classroom.rb
meibo-0.14.0 lib/meibo/japan_profile/classroom.rb
meibo-0.13.0 lib/meibo/japan_profile/classroom.rb
meibo-0.12.0 lib/meibo/japan_profile/classroom.rb
meibo-0.11.0 lib/meibo/japan_profile/classroom.rb
meibo-0.10.0 lib/meibo/japan_profile/classroom.rb
meibo-0.9.0 lib/meibo/japan_profile/classroom.rb
meibo-0.8.0 lib/meibo/japan_profile/classroom.rb
meibo-0.7.0 lib/meibo/japan_profile/classroom.rb
meibo-0.6.0 lib/meibo/japan_profile/classroom.rb
meibo-0.5.0 lib/meibo/japan_profile/classroom.rb
meibo-0.4.0 lib/meibo/japan_profile/classroom.rb
meibo-0.3.0 lib/meibo/japan_profile/classroom.rb
meibo-0.2.0 lib/meibo/japan_profile/classroom.rb