Class: Temporalio::Client::ActivityIDReference

Inherits:
Object
  • Object
show all
Defined in:
lib/temporalio/client/activity_id_reference.rb

Overview

Reference to an existing activity by its workflow ID, run ID, and activity ID.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(workflow_id:, run_id:, activity_id:) ⇒ ActivityIDReference

Create an activity ID reference.



25
26
27
28
29
# File 'lib/temporalio/client/activity_id_reference.rb', line 25

def initialize(workflow_id:, run_id:, activity_id:)
  @workflow_id = workflow_id
  @run_id = run_id
  @activity_id = activity_id
end

Instance Attribute Details

#activity_idString (readonly)



18
19
20
# File 'lib/temporalio/client/activity_id_reference.rb', line 18

def activity_id
  @activity_id
end

#run_idString? (readonly)



15
16
17
# File 'lib/temporalio/client/activity_id_reference.rb', line 15

def run_id
  @run_id
end

#workflow_idString (readonly)



12
13
14
# File 'lib/temporalio/client/activity_id_reference.rb', line 12

def workflow_id
  @workflow_id
end