Sha256: 09cdabe022debc374bd5a9a9ba6a6c4181aa2da214e78a8195935fefeeb0aca9

Contents?: true

Size: 546 Bytes

Versions: 8

Compression:

Stored size: 546 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, mext_grade_code: [:grades].freeze)
      )

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
meibo-0.27.1 lib/meibo/japan_profile/course.rb
meibo-0.27.0 lib/meibo/japan_profile/course.rb
meibo-0.26.0 lib/meibo/japan_profile/course.rb
meibo-0.25.3 lib/meibo/japan_profile/course.rb
meibo-0.25.2 lib/meibo/japan_profile/course.rb
meibo-0.25.1 lib/meibo/japan_profile/course.rb
meibo-0.25.0 lib/meibo/japan_profile/course.rb
meibo-0.24.0 lib/meibo/japan_profile/course.rb