Class: Meibo::UserM0

Inherits:
User
  • Object
show all
Defined in:
lib/meibo/user_m0.rb

Direct Known Subclasses

JapanProfile::UserM0

Constant Summary

Constants inherited from User

Meibo::User::USER_ID_FORMAT_REGEXP

Instance Method Summary collapse

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_classroomObject



43
44
45
# File 'lib/meibo/user_m0.rb', line 43

def home_classroom
  home_class && Meibo.current_roster.classes.find(home_class)
end