Sha256: 895455069a85d6a43465e6b47a5752899c1e71d6977180a1639b27e253605bea
Contents?: true
Size: 711 Bytes
Versions: 15
Compression:
Stored size: 711 Bytes
Contents
# frozen_string_literal: true require "securerandom" module Meibo class Builder module EnrollmentBuilder extend BaseBuilder def self.builder_attribute_names %i[builder classroom school user] end 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 end end end
Version data entries
15 entries across 15 versions & 1 rubygems