class RainforestRubyRuntime::Step

Attributes

action[R]
id[R]
response[R]

Public Class Methods

new(id: , action: , response: , callback: , &block) click to toggle source
# File lib/rainforest_ruby_runtime/test.rb, line 23
def initialize(id: , action: , response: , callback: , &block)
  @id = id
  @action = action
  @response = response
  @block = block
  @callback = callback
end

Public Instance Methods

run() click to toggle source
# File lib/rainforest_ruby_runtime/test.rb, line 31
def run
  @callback.before_step(self)
  @block.call
  @callback.after_step(self)
end