Class: Cadence::Metadata::Decision
- Defined in:
- lib/cadence/metadata/decision.rb
Instance Attribute Summary collapse
-
#attempt ⇒ Object
readonly
Returns the value of attribute attempt.
-
#domain ⇒ Object
readonly
Returns the value of attribute domain.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#task_token ⇒ Object
readonly
Returns the value of attribute task_token.
-
#timeouts ⇒ Object
readonly
Returns the value of attribute timeouts.
-
#workflow_id ⇒ Object
readonly
Returns the value of attribute workflow_id.
-
#workflow_name ⇒ Object
readonly
Returns the value of attribute workflow_name.
-
#workflow_run_id ⇒ Object
readonly
Returns the value of attribute workflow_run_id.
Instance Method Summary collapse
- #decision? ⇒ Boolean
-
#initialize(domain:, id:, task_token:, attempt:, workflow_run_id:, workflow_id:, workflow_name:) ⇒ Decision
constructor
A new instance of Decision.
Methods inherited from Base
Constructor Details
#initialize(domain:, id:, task_token:, attempt:, workflow_run_id:, workflow_id:, workflow_name:) ⇒ Decision
Returns a new instance of Decision.
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/cadence/metadata/decision.rb', line 8 def initialize(domain:, id:, task_token:, attempt:, workflow_run_id:, workflow_id:, workflow_name:) @domain = domain @id = id @task_token = task_token @attempt = attempt @workflow_run_id = workflow_run_id @workflow_id = workflow_id @workflow_name = workflow_name freeze end |
Instance Attribute Details
#attempt ⇒ Object (readonly)
Returns the value of attribute attempt.
6 7 8 |
# File 'lib/cadence/metadata/decision.rb', line 6 def attempt @attempt end |
#domain ⇒ Object (readonly)
Returns the value of attribute domain.
6 7 8 |
# File 'lib/cadence/metadata/decision.rb', line 6 def domain @domain end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/cadence/metadata/decision.rb', line 6 def id @id end |
#task_token ⇒ Object (readonly)
Returns the value of attribute task_token.
6 7 8 |
# File 'lib/cadence/metadata/decision.rb', line 6 def task_token @task_token end |
#timeouts ⇒ Object (readonly)
Returns the value of attribute timeouts.
6 7 8 |
# File 'lib/cadence/metadata/decision.rb', line 6 def timeouts @timeouts end |
#workflow_id ⇒ Object (readonly)
Returns the value of attribute workflow_id.
6 7 8 |
# File 'lib/cadence/metadata/decision.rb', line 6 def workflow_id @workflow_id end |
#workflow_name ⇒ Object (readonly)
Returns the value of attribute workflow_name.
6 7 8 |
# File 'lib/cadence/metadata/decision.rb', line 6 def workflow_name @workflow_name end |
#workflow_run_id ⇒ Object (readonly)
Returns the value of attribute workflow_run_id.
6 7 8 |
# File 'lib/cadence/metadata/decision.rb', line 6 def workflow_run_id @workflow_run_id end |
Instance Method Details
#decision? ⇒ Boolean
20 21 22 |
# File 'lib/cadence/metadata/decision.rb', line 20 def decision? true end |