Module: Meibo::Builder::DemographicBuilder

Extended by:
BaseBuilder
Defined in:
lib/meibo/builder/demographic_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/demographic_builder.rb', line 10

def self.builder_attribute_names
  %i[builder user]
end

Instance Method Details

#initialize(builder:, user:, **kw) ⇒ Object



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

def initialize(builder:, user:, **kw)
  super(sourced_id: user.sourced_id, **kw)
  @builder = builder
  @user = user
  builder.demographics << self
end