Class: Dynflow::Testing::DummyPlannedAction
- Inherits:
-
Object
- Object
- Dynflow::Testing::DummyPlannedAction
- Includes:
- Mimic
- Defined in:
- lib/dynflow/testing/dummy_planned_action.rb
Instance Attribute Summary collapse
-
#output ⇒ Object
Returns the value of attribute output.
-
#plan_input ⇒ Object
Returns the value of attribute plan_input.
Instance Method Summary collapse
- #execute(execution_plan, event, from_subscription, *args) ⇒ Object
-
#initialize(klass) ⇒ DummyPlannedAction
constructor
A new instance of DummyPlannedAction.
Methods included from Mimic
Constructor Details
#initialize(klass) ⇒ DummyPlannedAction
Returns a new instance of DummyPlannedAction.
7 8 9 10 11 |
# File 'lib/dynflow/testing/dummy_planned_action.rb', line 7 def initialize(klass) mimic! klass @output = ExecutionPlan::OutputReference.new( Testing.get_id.to_s, Testing.get_id, Testing.get_id) end |
Instance Attribute Details
#output ⇒ Object
Returns the value of attribute output.
4 5 6 |
# File 'lib/dynflow/testing/dummy_planned_action.rb', line 4 def output @output end |
#plan_input ⇒ Object
Returns the value of attribute plan_input.
4 5 6 |
# File 'lib/dynflow/testing/dummy_planned_action.rb', line 4 def plan_input @plan_input end |
Instance Method Details
#execute(execution_plan, event, from_subscription, *args) ⇒ Object
13 14 15 16 |
# File 'lib/dynflow/testing/dummy_planned_action.rb', line 13 def execute(execution_plan, event, from_subscription, *args) @plan_input = args self end |