Sha256: 3ee6fd0640f8a39834cf18ab5b950b45fb65b74d037a1059d4ab4c78ad864e1c

Contents?: true

Size: 482 Bytes

Versions: 15

Compression:

Stored size: 482 Bytes

Contents

# frozen_string_literal: true

require "securerandom"

module Meibo
  class Builder
    module UserProfileBuilder
      extend BaseBuilder

      def self.builder_attribute_names
        %i[builder user]
      end

      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
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
meibo-0.27.1 lib/meibo/builder/user_profile_builder.rb
meibo-0.27.0 lib/meibo/builder/user_profile_builder.rb
meibo-0.26.0 lib/meibo/builder/user_profile_builder.rb
meibo-0.25.3 lib/meibo/builder/user_profile_builder.rb
meibo-0.25.2 lib/meibo/builder/user_profile_builder.rb
meibo-0.25.1 lib/meibo/builder/user_profile_builder.rb
meibo-0.25.0 lib/meibo/builder/user_profile_builder.rb
meibo-0.24.0 lib/meibo/builder/user_profile_builder.rb
meibo-0.23.0 lib/meibo/builder/user_profile_builder.rb
meibo-0.22.0 lib/meibo/builder/user_profile_builder.rb
meibo-0.21.0 lib/meibo/builder/user_profile_builder.rb
meibo-0.20.0 lib/meibo/builder/user_profile_builder.rb
meibo-0.19.0 lib/meibo/builder/user_profile_builder.rb
meibo-0.18.0 lib/meibo/builder/user_profile_builder.rb
meibo-0.17.0 lib/meibo/builder/user_profile_builder.rb