class Eso::Workflow::History

Attributes

message[RW]

The most recent message

state[RW]

The current state of the workflow

state_histories[RW]

An array of Eso::Workflow::StateHistory

Public Class Methods

new(id:, name:, time_created:, steps:, state:, message:, history:) click to toggle source

Constructor for the WorkflowHistory

@param [String] id ID of the workflow. @param [String] name Name of the workflow. @param [Array] steps Array of the steps that this workflow takes. @param [Fixnum] time_created The time the workflow was created in millis since epoch @param [Eso::Workflow::State] state The current state of the workflow @param [String] message The most recent message

Calls superclass method Eso::Workflow::new
# File lib/eso/workflow.rb, line 141
def initialize(id:, name:, time_created:, steps:, state:, message:, history:)
  super(id: id, name: name, timeCreated: time_created, steps: steps)
  @state = state
  @message = message
  @state_histories = history
end