Sha256: 271c5f4bd7ef584435a5e1c77b525cf98b94b073ca3de53c31b7df12fee74d65

Contents?: true

Size: 644 Bytes

Versions: 2

Compression:

Stored size: 644 Bytes

Contents

# frozen_string_literal: true

module Meibo
  module JapanProfile
    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

2 entries across 2 versions & 1 rubygems

Version Path
meibo-0.23.0 lib/meibo/japan_profile/classroom.rb
meibo-0.22.0 lib/meibo/japan_profile/classroom.rb