Module: Meibo
- Defined in:
- lib/meibo.rb,
lib/meibo/role.rb,
lib/meibo/user.rb,
lib/meibo/course.rb,
lib/meibo/errors.rb,
lib/meibo/reader.rb,
lib/meibo/roster.rb,
lib/meibo/builder.rb,
lib/meibo/profile.rb,
lib/meibo/user_m0.rb,
lib/meibo/version.rb,
lib/meibo/data_set.rb,
lib/meibo/manifest.rb,
lib/meibo/profiles.rb,
lib/meibo/role_set.rb,
lib/meibo/user_set.rb,
lib/meibo/classroom.rb,
lib/meibo/converter.rb,
lib/meibo/course_set.rb,
lib/meibo/data_model.rb,
lib/meibo/enrollment.rb,
lib/meibo/demographic.rb,
lib/meibo/organization.rb,
lib/meibo/user_profile.rb,
lib/meibo/classroom_set.rb,
lib/meibo/enrollment_set.rb,
lib/meibo/demographic_set.rb,
lib/meibo/eportal_v3/user.rb,
lib/meibo/academic_session.rb,
lib/meibo/organization_set.rb,
lib/meibo/user_profile_set.rb,
lib/meibo/eportal_v3/course.rb,
lib/meibo/japan_profile/user.rb,
lib/meibo/academic_session_set.rb,
lib/meibo/builder/base_builder.rb,
lib/meibo/builder/role_builder.rb,
lib/meibo/builder/user_builder.rb,
lib/meibo/eportal_v3/classroom.rb,
lib/meibo/japan_profile/course.rb,
lib/meibo/eportal_v3/enrollment.rb,
lib/meibo/japan_profile/user_m0.rb,
lib/meibo/builder/course_builder.rb,
lib/meibo/japan_profile/user_set.rb,
lib/meibo/eportal_v3/organization.rb,
lib/meibo/eportal_v3/user_profile.rb,
lib/meibo/japan_profile/classroom.rb,
lib/meibo/japan_profile/enrollment.rb,
lib/meibo/japan_profile/role_jp_m0.rb,
lib/meibo/manifest/processing_mode.rb,
lib/meibo/builder/classroom_builder.rb,
lib/meibo/japan_profile/demographic.rb,
lib/meibo/builder/enrollment_builder.rb,
lib/meibo/japan_profile/organization.rb,
lib/meibo/builder/demographic_builder.rb,
lib/meibo/builder/organization_builder.rb,
lib/meibo/builder/user_profile_builder.rb,
lib/meibo/japan_profile/academic_session.rb,
lib/meibo/japan_profile/organization_set.rb,
lib/meibo/builder/academic_session_builder.rb
Defined Under Namespace
Modules: Converter, DataModel, EportalV3, JapanProfile, Profiles
Classes: AcademicSession, AcademicSessionSet, Builder, Classroom, ClassroomSet, Course, CourseSet, CsvFileNotFoundError, DataNotFoundError, DataSet, Demographic, DemographicSet, Enrollment, EnrollmentSet, Error, InvalidDataTypeError, Manifest, MissingDataError, MissingHeaderFieldsError, NotSupportedError, Organization, OrganizationSet, Profile, Reader, Role, RoleSet, Roster, ScrambledHeaderFieldsError, SourcedIdDuplicatedError, User, UserM0, UserProfile, UserProfileSet, UserSet
Constant Summary
collapse
- CSV_ENCODING =
"UTF-8"
- ENUM_EXT_PATTERN =
/\Aext:[a-zA-Z0-9.\-_]+\z/.freeze
- VERSION =
"0.27.1"
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.default_profile ⇒ Object
Returns the value of attribute default_profile.
17
18
19
|
# File 'lib/meibo.rb', line 17
def default_profile
@default_profile
end
|
Class Method Details
.current_profile ⇒ Object
19
20
21
|
# File 'lib/meibo.rb', line 19
def current_profile
thread_local_data[:current_profile] || default_profile
end
|
.current_roster ⇒ Object
23
24
25
|
# File 'lib/meibo.rb', line 23
def current_roster
thread_local_data[:roster]
end
|
.with_profile(default_profile) ⇒ Object
27
28
29
30
31
32
33
|
# File 'lib/meibo.rb', line 27
def with_profile(default_profile)
orig_default_profile = thread_local_data[:current_profile]
thread_local_data[:current_profile] = default_profile
yield
ensure
thread_local_data[:current_profile] = orig_default_profile
end
|
.with_roster(roster) ⇒ Object
35
36
37
38
39
40
41
|
# File 'lib/meibo.rb', line 35
def with_roster(roster)
orig_roster = thread_local_data[:roster]
thread_local_data[:roster] = roster
yield
ensure
thread_local_data[:roster] = orig_roster
end
|