Sha256: f76da68f8cfb0a8280d96cb7aa8774676d85e76546e5016f660495e8d2f2a49f
Contents?: true
Size: 716 Bytes
Versions: 16
Compression:
Stored size: 716 Bytes
Contents
# frozen_string_literal: true require 'securerandom' module Meibo class Builder module EnrollmentBuilder extend BaseBuilder def self.builder_attribute_names [:builder, :classroom, :school, :user] end def initialize(builder:, sourced_id: SecureRandom.uuid, classroom:, school:, user:, **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 end end end
Version data entries
16 entries across 16 versions & 1 rubygems