Class: SolidFlow::Workflow::StepDefinition
- Inherits:
-
Struct
- Object
- Struct
- SolidFlow::Workflow::StepDefinition
- Defined in:
- lib/solid_flow/workflow.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
Returns the value of attribute block.
-
#idempotency_key ⇒ Object
Returns the value of attribute idempotency_key.
-
#name ⇒ Object
Returns the value of attribute name.
-
#options ⇒ Object
Returns the value of attribute options.
-
#retry_policy ⇒ Object
Returns the value of attribute retry_policy.
-
#task ⇒ Object
Returns the value of attribute task.
-
#timeouts ⇒ Object
Returns the value of attribute timeouts.
Instance Method Summary collapse
Instance Attribute Details
#block ⇒ Object
Returns the value of attribute block
11 12 13 |
# File 'lib/solid_flow/workflow.rb', line 11 def block @block end |
#idempotency_key ⇒ Object
Returns the value of attribute idempotency_key
11 12 13 |
# File 'lib/solid_flow/workflow.rb', line 11 def idempotency_key @idempotency_key end |
#name ⇒ Object
Returns the value of attribute name
11 12 13 |
# File 'lib/solid_flow/workflow.rb', line 11 def name @name end |
#options ⇒ Object
Returns the value of attribute options
11 12 13 |
# File 'lib/solid_flow/workflow.rb', line 11 def end |
#retry_policy ⇒ Object
Returns the value of attribute retry_policy
11 12 13 |
# File 'lib/solid_flow/workflow.rb', line 11 def retry_policy @retry_policy end |
#task ⇒ Object
Returns the value of attribute task
11 12 13 |
# File 'lib/solid_flow/workflow.rb', line 11 def task @task end |
#timeouts ⇒ Object
Returns the value of attribute timeouts
11 12 13 |
# File 'lib/solid_flow/workflow.rb', line 11 def timeouts @timeouts end |
Instance Method Details
#block? ⇒ Boolean
25 26 27 |
# File 'lib/solid_flow/workflow.rb', line 25 def block? !block.nil? end |
#dup ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/solid_flow/workflow.rb', line 29 def dup self.class.new( name:, task:, block:, retry_policy: retry_policy.deep_dup, timeouts: timeouts.deep_dup, idempotency_key:, options: .deep_dup ) end |
#task? ⇒ Boolean
21 22 23 |
# File 'lib/solid_flow/workflow.rb', line 21 def task? task.present? end |