Class: Smith::Workflow::ParallelAgentBinding
- Inherits:
-
Object
- Object
- Smith::Workflow::ParallelAgentBinding
- Extended by:
- Dry::Initializer
- Defined in:
- lib/smith/workflow/parallel_agent_binding.rb
Instance Method Summary collapse
-
#initialize ⇒ ParallelAgentBinding
constructor
A new instance of ParallelAgentBinding.
- #resolve(workflow:, transition:) ⇒ Object
Constructor Details
#initialize ⇒ ParallelAgentBinding
Returns a new instance of ParallelAgentBinding.
14 15 16 17 |
# File 'lib/smith/workflow/parallel_agent_binding.rb', line 14 def initialize(...) super freeze end |
Instance Method Details
#resolve(workflow:, transition:) ⇒ Object
19 20 21 |
# File 'lib/smith/workflow/parallel_agent_binding.rb', line 19 def resolve(workflow:, transition:) agent_class if @workflow.equal?(workflow) && @transition.equal?(transition) end |