Module: Meibo::Builder::UserProfileBuilder

Extended by:
BaseBuilder
Defined in:
lib/meibo/builder/user_profile_builder.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from BaseBuilder

create

Class Method Details

.builder_attribute_namesObject



10
11
12
# File 'lib/meibo/builder/user_profile_builder.rb', line 10

def self.builder_attribute_names
  %i[builder user]
end

Instance Method Details

#initialize(builder:, user:, sourced_id: SecureRandom.uuid, **kw) ⇒ Object



14
15
16
17
18
19
# File 'lib/meibo/builder/user_profile_builder.rb', line 14

def initialize(builder:, user:, sourced_id: SecureRandom.uuid, **kw)
  super(sourced_id: sourced_id, user_sourced_id: user.sourced_id, **kw)
  @builder = builder
  @user = user
  builder.user_profiles << self
end