Class: Smith::Workflow::ParallelAgentBinding

Inherits:
Object
  • Object
show all
Extended by:
Dry::Initializer
Defined in:
lib/smith/workflow/parallel_agent_binding.rb

Instance Method Summary collapse

Constructor Details

#initializeParallelAgentBinding

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