class ROM::Factory::Attributes::Association::Core

@api private

Attributes

assoc[R]
options[R]
traits[R]

Public Class Methods

new(assoc, builder, *traits, **options) click to toggle source

@api private

# File lib/rom/factory/attributes/association.rb, line 19
def initialize(assoc, builder, *traits, **options)
  @assoc = assoc
  @builder_proc = builder
  @traits = traits
  @options = options
end

Public Instance Methods

builder() click to toggle source

@api private

# File lib/rom/factory/attributes/association.rb, line 27
def builder
  @__builder__ ||= @builder_proc.call
end
dependency?(*) click to toggle source

@api private

# File lib/rom/factory/attributes/association.rb, line 37
def dependency?(*)
  false
end
name() click to toggle source

@api private

# File lib/rom/factory/attributes/association.rb, line 32
def name
  assoc.key
end
value?() click to toggle source

@api private

# File lib/rom/factory/attributes/association.rb, line 42
def value?
  false
end