Sha256: 38c91a2c32f8f8425ab380d52dfd54a6e5260446e693acfc4f852a595b0cadb3

Contents?: true

Size: 529 Bytes

Versions: 5

Compression:

Stored size: 529 Bytes

Contents

# frozen_string_literal: true

module Meibo
  class JapanProfile < ::Meibo::Profile
    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

5 entries across 5 versions & 1 rubygems

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