Class: Cadence::Metadata::Workflow
- Defined in:
- lib/cadence/metadata/workflow.rb
Instance Attribute Summary collapse
-
#attempt ⇒ Object
readonly
Returns the value of attribute attempt.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#run_id ⇒ Object
readonly
Returns the value of attribute run_id.
-
#timeouts ⇒ Object
readonly
Returns the value of attribute timeouts.
Instance Method Summary collapse
-
#initialize(name:, run_id:, attempt:, timeouts:, headers: {}) ⇒ Workflow
constructor
A new instance of Workflow.
- #workflow? ⇒ Boolean
Methods inherited from Base
Constructor Details
#initialize(name:, run_id:, attempt:, timeouts:, headers: {}) ⇒ Workflow
Returns a new instance of Workflow.
8 9 10 11 12 13 14 15 16 |
# File 'lib/cadence/metadata/workflow.rb', line 8 def initialize(name:, run_id:, attempt:, timeouts:, headers: {}) @name = name @run_id = run_id @attempt = attempt @headers = headers @timeouts = timeouts freeze end |
Instance Attribute Details
#attempt ⇒ Object (readonly)
Returns the value of attribute attempt.
6 7 8 |
# File 'lib/cadence/metadata/workflow.rb', line 6 def attempt @attempt end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
6 7 8 |
# File 'lib/cadence/metadata/workflow.rb', line 6 def headers @headers end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/cadence/metadata/workflow.rb', line 6 def name @name end |
#run_id ⇒ Object (readonly)
Returns the value of attribute run_id.
6 7 8 |
# File 'lib/cadence/metadata/workflow.rb', line 6 def run_id @run_id end |
#timeouts ⇒ Object (readonly)
Returns the value of attribute timeouts.
6 7 8 |
# File 'lib/cadence/metadata/workflow.rb', line 6 def timeouts @timeouts end |
Instance Method Details
#workflow? ⇒ Boolean
18 19 20 |
# File 'lib/cadence/metadata/workflow.rb', line 18 def workflow? true end |