Sha256: 2478fe9730b42ced49575fd82161d9a811dd91c8d5db722ee8b624379689e507

Contents?: true

Size: 422 Bytes

Versions: 16

Compression:

Stored size: 422 Bytes

Contents

# frozen_string_literal: true

require 'securerandom'

module Meibo
  class Builder
    module DemographicBuilder
      extend BaseBuilder

      def self.builder_attribute_names
        [:builder, :user]
      end

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

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
meibo-0.16.0 lib/meibo/builder/demographic_builder.rb
meibo-0.15.0 lib/meibo/builder/demographic_builder.rb
meibo-0.14.0 lib/meibo/builder/demographic_builder.rb
meibo-0.13.0 lib/meibo/builder/demographic_builder.rb
meibo-0.12.0 lib/meibo/builder/demographic_builder.rb
meibo-0.11.0 lib/meibo/builder/demographic_builder.rb
meibo-0.10.0 lib/meibo/builder/demographic_builder.rb
meibo-0.9.0 lib/meibo/builder/demographic_builder.rb
meibo-0.8.0 lib/meibo/builder/demographic_builder.rb
meibo-0.7.0 lib/meibo/builder/demographic_builder.rb
meibo-0.6.0 lib/meibo/builder/demographic_builder.rb
meibo-0.5.0 lib/meibo/builder/demographic_builder.rb
meibo-0.4.0 lib/meibo/builder/demographic_builder.rb
meibo-0.3.0 lib/meibo/builder/demographic_builder.rb
meibo-0.2.0 lib/meibo/builder/demographic_builder.rb
meibo-0.1.0 lib/meibo/builder/demographic_builder.rb