Class: SolidFlow::Replay::TaskState

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#attemptObject

Returns the value of attribute attempt

Returns:

  • (Object)

    the current value of attempt



30
31
32
# File 'lib/solid_flow/replay.rb', line 30

def attempt
  @attempt
end

#idempotency_keyObject

Returns the value of attribute idempotency_key

Returns:

  • (Object)

    the current value of idempotency_key



30
31
32
# File 'lib/solid_flow/replay.rb', line 30

def idempotency_key
  @idempotency_key
end

#last_errorObject

Returns the value of attribute last_error

Returns:

  • (Object)

    the current value of last_error



30
31
32
# File 'lib/solid_flow/replay.rb', line 30

def last_error
  @last_error
end

#last_resultObject

Returns the value of attribute last_result

Returns:

  • (Object)

    the current value of last_result



30
31
32
# File 'lib/solid_flow/replay.rb', line 30

def last_result
  @last_result
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



30
31
32
# File 'lib/solid_flow/replay.rb', line 30

def status
  @status
end

#stepObject

Returns the value of attribute step

Returns:

  • (Object)

    the current value of step



30
31
32
# File 'lib/solid_flow/replay.rb', line 30

def step
  @step
end

Instance Method Details

#finished?Boolean

Returns:

  • (Boolean)


39
40
41
# File 'lib/solid_flow/replay.rb', line 39

def finished?
  %i[completed failed].include?(status)
end