Class: ComputedModel::Plan::Node Private
- Inherits:
-
Object
- Object
- ComputedModel::Plan::Node
- Defined in:
- lib/computed_model/plan.rb
Overview
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.
A set of information necessary to invoke the loader or the computed def.
Instance Attribute Summary collapse
-
#deps ⇒ Set<Symbol>
readonly
private
Set of dependency names.
-
#name ⇒ Symbol
readonly
private
Field name.
-
#subfields ⇒ ComputedModel::NormalizableArray
readonly
private
Subfield selectors, payloads sent to the dependency.
Instance Method Summary collapse
-
#initialize(name, deps, subfields) ⇒ Node
constructor
private
A new instance of Node.
Constructor Details
#initialize(name, deps, subfields) ⇒ Node
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 Node.
41 42 43 44 45 |
# File 'lib/computed_model/plan.rb', line 41 def initialize(name, deps, subfields) @name = name @deps = deps @subfields = subfields end |
Instance Attribute Details
#deps ⇒ Set<Symbol> (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.
Returns set of dependency names.
34 35 36 |
# File 'lib/computed_model/plan.rb', line 34 def deps @deps end |
#name ⇒ Symbol (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.
Returns field name.
32 33 34 |
# File 'lib/computed_model/plan.rb', line 32 def name @name end |
#subfields ⇒ ComputedModel::NormalizableArray (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.
Returns subfield selectors, payloads sent to the dependency.
36 37 38 |
# File 'lib/computed_model/plan.rb', line 36 def subfields @subfields end |