-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
61 changed files
with
3,536 additions
and
492 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'temporalio/api' | ||
require 'temporalio/client/interceptor' | ||
require 'temporalio/error' | ||
|
||
module Temporalio | ||
class Client | ||
# Reference to an existing activity by its workflow ID, run ID, and activity ID. | ||
class ActivityIDReference | ||
# @return [String] ID for the workflow. | ||
attr_reader :workflow_id | ||
|
||
# @return [String, nil] Run ID for the workflow. | ||
attr_reader :run_id | ||
|
||
# @return [String] ID for the activity. | ||
attr_reader :activity_id | ||
|
||
# Create an activity ID reference. | ||
# | ||
# @param workflow_id [String] ID for the workflow. | ||
# @param run_id [String, nil] Run ID for the workflow. | ||
# @param activity_id [String] ID for the workflow. | ||
def initialize(workflow_id:, run_id:, activity_id:) | ||
@workflow_id = workflow_id | ||
@run_id = run_id | ||
@activity_id = activity_id | ||
end | ||
end | ||
end | ||
end |
Oops, something went wrong.