Class: Phronomy::Agent::ContextPlanValidator::ValidatedContextPlan

Inherits:
Data
  • Object
show all
Defined in:
lib/phronomy/agent/context_plan_validator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#planObject (readonly)

Returns the value of attribute plan

Returns:

  • (Object)

    the current value of plan



6
7
8
# File 'lib/phronomy/agent/context_plan_validator.rb', line 6

def plan
  @plan
end

#selected_candidatesObject (readonly)

Returns the value of attribute selected_candidates

Returns:

  • (Object)

    the current value of selected_candidates



6
7
8
# File 'lib/phronomy/agent/context_plan_validator.rb', line 6

def selected_candidates
  @selected_candidates
end

#selected_unitsObject (readonly)

Returns the value of attribute selected_units

Returns:

  • (Object)

    the current value of selected_units



6
7
8
# File 'lib/phronomy/agent/context_plan_validator.rb', line 6

def selected_units
  @selected_units
end

#unitsObject (readonly)

Returns the value of attribute units

Returns:

  • (Object)

    the current value of units



6
7
8
# File 'lib/phronomy/agent/context_plan_validator.rb', line 6

def units
  @units
end