Class: Meibo::UserM0
Direct Known Subclasses
Constant Summary
Constants inherited from User
Meibo::User::USER_ID_FORMAT_REGEXP
Instance Method Summary collapse
- #home_classroom ⇒ Object
-
#initialize(resource_sourced_ids: nil, **other_fields) ⇒ UserM0
constructor
NOTE: enabled_userは必須ではないが固定.
Methods inherited from User
#agents, #collection, #demographic, #enrollments, #primary_organization, #primary_role_in, #roles, #user_profiles
Constructor Details
#initialize(resource_sourced_ids: nil, **other_fields) ⇒ UserM0
NOTE: enabled_userは必須ではないが固定
38 39 40 41 |
# File 'lib/meibo/user_m0.rb', line 38 def initialize(resource_sourced_ids: nil, **other_fields) super(**other_fields) @resource_sourced_ids = resource_sourced_ids end |
Instance Method Details
#home_classroom ⇒ Object
43 44 45 |
# File 'lib/meibo/user_m0.rb', line 43 def home_classroom home_class && Meibo.current_roster.classes.find(home_class) end |