Module: Meibo::JapanProfile::User::ClassMethods
- Included in:
- Meibo::JapanProfile::User, Meibo::JapanProfile::UserM0
- Defined in:
- lib/meibo/japan_profile/user.rb
Instance Method Summary collapse
Instance Method Details
#define_additional_definition(klass) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/meibo/japan_profile/user.rb', line 7 def define_additional_definition(klass) DataModel.define( klass, attribute_name_to_header_field_map: klass.superclass.attribute_name_to_header_field_map.merge( kana_given_name: "metadata.jp.kanaGivenName", kana_family_name: "metadata.jp.kanaFamilyName", kana_middle_name: "metadata.jp.kanaMiddleName", home_class: "metadata.jp.homeClass" ).freeze, converters: klass.superclass.converters.merge( mext_grade_code: [:grades].freeze ) ) end |