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
Instance Method Summary collapse
- #builder ⇒ Object private
- #dependency? ⇒ Boolean private
-
#initialize(assoc, builder, options = {}) ⇒ Core
constructor
private
A new instance of Core.
- #name ⇒ Object private
- #value? ⇒ Boolean private
Constructor Details
#initialize(assoc, builder, 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.
14 15 16 17 18 |
# File 'lib/rom/factory/attributes/association.rb', line 14 def initialize(assoc, builder, = {}) @assoc = assoc @builder_proc = builder @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.
11 12 13 |
# File 'lib/rom/factory/attributes/association.rb', line 11 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.
11 12 13 |
# File 'lib/rom/factory/attributes/association.rb', line 11 def @options 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.
21 22 23 |
# File 'lib/rom/factory/attributes/association.rb', line 21 def builder @__builder__ ||= @builder_proc.() 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.
31 32 33 |
# File 'lib/rom/factory/attributes/association.rb', line 31 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.
26 27 28 |
# File 'lib/rom/factory/attributes/association.rb', line 26 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.
36 37 38 |
# File 'lib/rom/factory/attributes/association.rb', line 36 def value? false end |