class Temporal::Metadata::Workflow

Attributes

attempt[R]
headers[R]
name[R]
run_id[R]

Public Class Methods

new(name:, run_id:, attempt:, headers: {}) click to toggle source
# File lib/temporal/metadata/workflow.rb, line 8
def initialize(name:, run_id:, attempt:, headers: {})
  @name = name
  @run_id = run_id
  @attempt = attempt
  @headers = headers

  freeze
end

Public Instance Methods

to_h() click to toggle source
# File lib/temporal/metadata/workflow.rb, line 21
def to_h
  {
    'workflow_name' => name,
    'workflow_run_id' => run_id,
    'attempt' => attempt
  }
end
workflow?() click to toggle source
# File lib/temporal/metadata/workflow.rb, line 17
def workflow?
  true
end