Class: ROM::Factory::Attributes::Association::Core Private
- Inherits:
-
Object
- Object
- ROM::Factory::Attributes::Association::Core
- Defined in:
- lib/rom/factory/attributes/association.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #assoc ⇒ Object readonly private
- #options ⇒ Object readonly private
- #traits ⇒ Object readonly private
Instance Method Summary collapse
- #builder ⇒ Object private
- #dependency? ⇒ Boolean private
-
#initialize(assoc, builder, *traits, **options) ⇒ Core
constructor
private
A new instance of Core.
- #name ⇒ Object private
- #value? ⇒ Boolean private
Constructor Details
#initialize(assoc, builder, *traits, **options) ⇒ Core
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Core.
16 17 18 19 20 21 |
# File 'lib/rom/factory/attributes/association.rb', line 16 def initialize(assoc, builder, *traits, **) @assoc = assoc @builder_proc = builder @traits = traits @options = end |
Instance Attribute Details
#assoc ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
13 14 15 |
# File 'lib/rom/factory/attributes/association.rb', line 13 def assoc @assoc end |
#options ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
13 14 15 |
# File 'lib/rom/factory/attributes/association.rb', line 13 def @options end |
#traits ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
13 14 15 |
# File 'lib/rom/factory/attributes/association.rb', line 13 def traits @traits end |
Instance Method Details
#builder ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
24 25 26 |
# File 'lib/rom/factory/attributes/association.rb', line 24 def builder @__builder__ ||= @builder_proc.call end |
#dependency? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
34 35 36 |
# File 'lib/rom/factory/attributes/association.rb', line 34 def dependency?(*) false end |
#name ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
29 30 31 |
# File 'lib/rom/factory/attributes/association.rb', line 29 def name assoc.key end |
#value? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
39 40 41 |
# File 'lib/rom/factory/attributes/association.rb', line 39 def value? false end |