Class: Plutonium::Wizard::Runner::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/plutonium/wizard/runner.rb

Overview

The outcome of a runner operation.

  • ok — the operation succeeded (validation passed / navigation moved).
  • errors — => [messages] when it didn't.
  • completed — finalize ran execute to completion.
  • redirect_step — finalize found a completeness gap; the step to bounce to.
  • value — the successful execute outcome's value.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#completedObject

Returns the value of attribute completed

Returns:

  • (Object)

    the current value of completed



21
22
23
# File 'lib/plutonium/wizard/runner.rb', line 21

def completed
  @completed
end

#errorsObject

Returns the value of attribute errors

Returns:

  • (Object)

    the current value of errors



21
22
23
# File 'lib/plutonium/wizard/runner.rb', line 21

def errors
  @errors
end

#okObject

Returns the value of attribute ok

Returns:

  • (Object)

    the current value of ok



21
22
23
# File 'lib/plutonium/wizard/runner.rb', line 21

def ok
  @ok
end

#redirect_stepObject

Returns the value of attribute redirect_step

Returns:

  • (Object)

    the current value of redirect_step



21
22
23
# File 'lib/plutonium/wizard/runner.rb', line 21

def redirect_step
  @redirect_step
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



21
22
23
# File 'lib/plutonium/wizard/runner.rb', line 21

def value
  @value
end

Instance Method Details

#completed?Boolean

Returns:

  • (Boolean)


24
# File 'lib/plutonium/wizard/runner.rb', line 24

def completed? = !!completed

#ok?Boolean

Returns:

  • (Boolean)


22
# File 'lib/plutonium/wizard/runner.rb', line 22

def ok? = !!ok