Class: Dynflow::Testing::DummyPlannedAction

Inherits:
Object
  • Object
show all
Includes:
Mimic
Defined in:
lib/dynflow/testing/dummy_planned_action.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Mimic

#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

#outputObject

Returns the value of attribute output.



4
5
6
# File 'lib/dynflow/testing/dummy_planned_action.rb', line 4

def output
  @output
end

#plan_inputObject

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