Class: SolidFlow::Replay::AwaitingState

Inherits:
Struct
  • Object
show all
Defined in:
lib/solid_flow/replay.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#instructionsObject

Returns the value of attribute instructions

Returns:

  • (Object)

    the current value of instructions



57
58
59
# File 'lib/solid_flow/replay.rb', line 57

def instructions
  @instructions
end

#stepObject

Returns the value of attribute step

Returns:

  • (Object)

    the current value of step



57
58
59
# File 'lib/solid_flow/replay.rb', line 57

def step
  @step
end

Instance Method Details

#signal_instructionsObject



66
67
68
# File 'lib/solid_flow/replay.rb', line 66

def signal_instructions
  instructions.select { |inst| inst[:type].to_sym == :signal }
end

#timer_instructionsObject



62
63
64
# File 'lib/solid_flow/replay.rb', line 62

def timer_instructions
  instructions.select { |inst| inst[:type].to_sym == :timer }
end