lib/meibo/profile.rb in meibo-0.21.0 vs lib/meibo/profile.rb in meibo-0.22.0

- old
+ new

@@ -1,47 +1,11 @@ # frozen_string_literal: true module Meibo class Profile - BUILDERS = { - academic_session: Builder::AcademicSessionBuilder.create(AcademicSession), - class: Builder::ClassroomBuilder.create(Classroom), - course: Builder::CourseBuilder.create(Course), - demographic: Builder::DemographicBuilder.create(Demographic), - 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, - file_demographics: Meibo::Demographic, - 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, - demographics: Meibo::DemographicSet, - 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) + def initialize(builders:, data_models:, data_set:) @builders = builders @data_models = data_models @data_set = data_set end