Sha256: e9f4307fc1f75040813830ccf2b2cdfee4c31da98d8a34f34d2100fd01d30fcf

Contents?: true

Size: 1.15 KB

Versions: 15

Compression:

Stored size: 1.15 KB

Contents

# frozen_string_literal: true

module Meibo
  class JapanProfile < ::Meibo::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)
    }

    DATA_MODELS = {
      file_academic_sessions: AcademicSession,
      file_classes: Classroom,
      file_courses: Course,
      file_demographics: Demographic,
      file_enrollments: Enrollment,
      file_orgs: Organization,
      file_roles: Role,
      file_user_profiles: UserProfile,
      file_users: User
    }

    DATA_SET = ::Meibo::Profile::DATA_SET.merge(
      users: UserSet
    )

    def initialize(builders: BUILDERS, data_models: DATA_MODELS, data_set: DATA_SET)
      super
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
meibo-0.16.0 lib/meibo/japan_profile.rb
meibo-0.15.0 lib/meibo/japan_profile.rb
meibo-0.14.0 lib/meibo/japan_profile.rb
meibo-0.13.0 lib/meibo/japan_profile.rb
meibo-0.12.0 lib/meibo/japan_profile.rb
meibo-0.11.0 lib/meibo/japan_profile.rb
meibo-0.10.0 lib/meibo/japan_profile.rb
meibo-0.9.0 lib/meibo/japan_profile.rb
meibo-0.8.0 lib/meibo/japan_profile.rb
meibo-0.7.0 lib/meibo/japan_profile.rb
meibo-0.6.0 lib/meibo/japan_profile.rb
meibo-0.5.0 lib/meibo/japan_profile.rb
meibo-0.4.0 lib/meibo/japan_profile.rb
meibo-0.3.0 lib/meibo/japan_profile.rb
meibo-0.2.0 lib/meibo/japan_profile.rb