module Linearly::Step::Dynamic

Public Instance Methods

call(_state) click to toggle source

User-defined logic for this Step

An invalid implementation is provided to ensure that a failure to override this method is not quietly caught as a StandardError.

@param _state [Statefully::State]

@return [Statefully::State] @api public @example

FindUser.new.call(Statefully::State.create(user_id: 7))
# File lib/linearly/step/dynamic.rb, line 45
def call(_state)
  raise NotImplementedError
end
inputs() click to toggle source

Inputs for a step

An invalid implementation is provided to ensure that a failure to override this method is not quietly caught as a StandardError.

@return [Hash<Symbol, Expectation>] @api public @example

FindUser.new.inputs
=> { user_id: Integer }
# File lib/linearly/step/dynamic.rb, line 16
def inputs
  raise NotImplementedError
end
outputs() click to toggle source

Outputs for a step

An invalid implementation is provided to ensure that a failure to override this method is not quietly caught as a StandardError.

@return [Hash<Symbol, Expectation>] @api public @example

FindUser.new.outputs
=> { user: User }
# File lib/linearly/step/dynamic.rb, line 30
def outputs
  {}
end