Class: Phronomy::Agent::ContextPlanValidator::ValidatedContextPlan
- Inherits:
-
Data
- Object
- Data
- Phronomy::Agent::ContextPlanValidator::ValidatedContextPlan
- Defined in:
- lib/phronomy/agent/context_plan_validator.rb
Instance Attribute Summary collapse
-
#plan ⇒ Object
readonly
Returns the value of attribute plan.
-
#selected_candidates ⇒ Object
readonly
Returns the value of attribute selected_candidates.
-
#selected_units ⇒ Object
readonly
Returns the value of attribute selected_units.
-
#units ⇒ Object
readonly
Returns the value of attribute units.
Instance Method Summary collapse
-
#initialize(**values) ⇒ ValidatedContextPlan
constructor
A new instance of ValidatedContextPlan.
Constructor Details
#initialize(**values) ⇒ ValidatedContextPlan
Returns a new instance of ValidatedContextPlan.
9 10 11 12 13 14 15 16 |
# File 'lib/phronomy/agent/context_plan_validator.rb', line 9 def initialize(**values) super(**values.merge( units: Array(values[:units]).freeze, selected_units: Array(values[:selected_units]).freeze, selected_candidates: Array(values[:selected_candidates]).freeze )) freeze end |
Instance Attribute Details
#plan ⇒ Object (readonly)
Returns the value of attribute plan
6 7 8 |
# File 'lib/phronomy/agent/context_plan_validator.rb', line 6 def plan @plan end |
#selected_candidates ⇒ Object (readonly)
Returns the value of attribute selected_candidates
6 7 8 |
# File 'lib/phronomy/agent/context_plan_validator.rb', line 6 def selected_candidates @selected_candidates end |
#selected_units ⇒ Object (readonly)
Returns the value of attribute selected_units
6 7 8 |
# File 'lib/phronomy/agent/context_plan_validator.rb', line 6 def selected_units @selected_units end |
#units ⇒ Object (readonly)
Returns the value of attribute units
6 7 8 |
# File 'lib/phronomy/agent/context_plan_validator.rb', line 6 def units @units end |