Sha256: 7621f68b12990797b3b3ec689e272259063f2d5400188c7a2a90e8329071a8e4

Contents?: true

Size: 511 Bytes

Versions: 1

Compression:

Stored size: 511 Bytes

Contents

# frozen_string_literal: true

module Meibo
  module JapanProfile
    class Course < ::Meibo::Course
      DataModel.define(
        self,
        attribute_name_to_header_field_map: superclass.attribute_name_to_header_field_map,
        converters: superclass.converters.merge(enum: { course_code: [''].freeze }.freeze)
      )

      # NOTE: courseCodeは空文字固定
      def initialize(course_code: '', **other_fields)
        super(course_code: course_code, **other_fields)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
meibo-0.1.0 lib/meibo/japan_profile/course.rb