Class: Meibo::JapanProfile::V1_1::Enrollment
- Inherits:
-
OneRoster::V1_2::Enrollment
- Object
- Meibo::JapanProfile::V1_1::Enrollment
- Defined in:
- lib/meibo/japan_profile/v1_1/enrollment.rb
Direct Known Subclasses
Constant Summary collapse
- ROLES =
{ student: "student", teacher: "teacher", administrator: "administrator", guardian: "guardian" }.freeze
Instance Method Summary collapse
- #guardian? ⇒ Boolean
-
#initialize(role:, shusseki_no: nil, public_flg: nil, primary: (role == ROLES[:student] ? false : nil)) ⇒ Enrollment
constructor
NOTE: 児童生徒の場合primaryはfalse固定 MEMO: 保護者の場合もそうでは?.
Constructor Details
#initialize(role:, shusseki_no: nil, public_flg: nil, primary: (role == ROLES[:student] ? false : nil)) ⇒ Enrollment
NOTE: 児童生徒の場合primaryはfalse固定MEMO: 保護者の場合もそうでは?
31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/meibo/japan_profile/v1_1/enrollment.rb', line 31 def initialize( role:, shusseki_no: nil, public_flg: nil, primary: (role == ROLES[:student] ? false : nil), ** ) super(role: role, primary: primary, **) @shusseki_no = shusseki_no @public_flg = public_flg end |
Instance Method Details
#guardian? ⇒ Boolean
43 |
# File 'lib/meibo/japan_profile/v1_1/enrollment.rb', line 43 def guardian? = role == ROLES[:guardian] |