Class: Yael::ExecutionJob

Inherits:
ActiveJob::Base
  • Object
show all
Defined in:
lib/yael/execution_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(target_name, method, stream, args) ⇒ Object



7
8
9
10
11
# File 'lib/yael/execution_job.rb', line 7

def perform(target_name, method, stream, args)
  target_constant = target_name.constantize
  parameters = extract_parameters(target_constant.method(method), stream, args)
  target_constant.public_send method, **parameters
end