Class: Temporalio::Client::ActivityIDReference
- Inherits:
-
Object
- Object
- Temporalio::Client::ActivityIDReference
- 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
-
#activity_id ⇒ String
readonly
ID for the activity.
-
#run_id ⇒ String?
readonly
Run ID for the workflow.
-
#workflow_id ⇒ String
readonly
ID for the workflow.
Instance Method Summary collapse
-
#initialize(workflow_id:, run_id:, activity_id:) ⇒ ActivityIDReference
constructor
Create an activity ID reference.
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_id ⇒ String (readonly)
Returns ID for the activity.
18 19 20 |
# File 'lib/temporalio/client/activity_id_reference.rb', line 18 def activity_id @activity_id end |
#run_id ⇒ String? (readonly)
Returns Run ID for the workflow.
15 16 17 |
# File 'lib/temporalio/client/activity_id_reference.rb', line 15 def run_id @run_id end |
#workflow_id ⇒ String (readonly)
Returns ID for the workflow.
12 13 14 |
# File 'lib/temporalio/client/activity_id_reference.rb', line 12 def workflow_id @workflow_id end |