Sha256: b464be871962e295da99a51d2558bac0277f3dc31caf4b98343f37f61c026da9
Contents?: true
Size: 483 Bytes
Versions: 16
Compression:
Stored size: 483 Bytes
Contents
# frozen_string_literal: true require 'securerandom' module Meibo class Builder module UserProfileBuilder extend BaseBuilder def self.builder_attribute_names [:builder, :user] end def initialize(builder:, sourced_id: SecureRandom.uuid, user:, **kw) super(sourced_id: sourced_id, user_sourced_id: user.sourced_id, **kw) @builder = builder @user = user builder.user_profiles << self end end end end
Version data entries
16 entries across 16 versions & 1 rubygems