Sha256: 982e75be47f59b5a104e3b12737066910c03af3776a2e3c3bb3c85ad9603f958

Contents?: true

Size: 529 Bytes

Versions: 15

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

15 entries across 15 versions & 1 rubygems

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