Module: Meibo::Builder::EnrollmentBuilder
- Extended by:
- BaseBuilder
- Defined in:
- lib/meibo/builder/enrollment_builder.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods included from BaseBuilder
Class Method Details
.builder_attribute_names ⇒ Object
10 11 12 |
# File 'lib/meibo/builder/enrollment_builder.rb', line 10 def self.builder_attribute_names %i[builder classroom school user] end |
Instance Method Details
#initialize(builder:, classroom:, school:, user:, sourced_id: SecureRandom.uuid, **kw) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/meibo/builder/enrollment_builder.rb', line 14 def initialize(builder:, classroom:, school:, user:, sourced_id: SecureRandom.uuid, **kw) super( sourced_id: sourced_id, class_sourced_id: classroom.sourced_id, school_sourced_id: school.sourced_id, user_sourced_id: user.sourced_id, **kw ) @builder = builder @classroom = classroom @school = school @user = user builder.enrollments << self end |