lib/meibo/builder/enrollment_builder.rb in meibo-0.16.0 vs lib/meibo/builder/enrollment_builder.rb in meibo-0.17.0
- old
+ new
@@ -1,18 +1,18 @@
# frozen_string_literal: true
-require 'securerandom'
+require "securerandom"
module Meibo
class Builder
module EnrollmentBuilder
extend BaseBuilder
def self.builder_attribute_names
- [:builder, :classroom, :school, :user]
+ %i[builder classroom school user]
end
- def initialize(builder:, sourced_id: SecureRandom.uuid, classroom:, school:, user:, **kw)
+ 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,