lib/meibo/profile.rb in meibo-0.16.0 vs lib/meibo/profile.rb in meibo-0.17.0
- old
+ new
@@ -10,11 +10,11 @@
enrollment: Builder::EnrollmentBuilder.create(Enrollment),
org: Builder::OrganizationBuilder.create(Organization),
role: Builder::RoleBuilder.create(Role),
user: Builder::UserBuilder.create(User),
user_profile: Builder::UserProfileBuilder.create(UserProfile)
- }
+ }.freeze
DATA_MODELS = {
file_academic_sessions: Meibo::AcademicSession,
file_classes: Meibo::Classroom,
file_courses: Meibo::Course,
@@ -22,11 +22,11 @@
file_enrollments: Meibo::Enrollment,
file_orgs: Meibo::Organization,
file_roles: Meibo::Role,
file_user_profiles: Meibo::UserProfile,
file_users: Meibo::User
- }
+ }.freeze
DATA_SET = {
academic_sessions: Meibo::AcademicSessionSet,
classes: Meibo::ClassroomSet,
courses: Meibo::CourseSet,
@@ -34,10 +34,10 @@
enrollments: Meibo::EnrollmentSet,
orgs: Meibo::OrganizationSet,
roles: Meibo::RoleSet,
user_profiles: Meibo::UserProfileSet,
users: Meibo::UserSet
- }
+ }.freeze
attr_reader :builders, :data_models, :data_set
def initialize(builders: BUILDERS, data_models: DATA_MODELS, data_set: DATA_SET)
@builders = builders