Class: UseCases::StepAdapters::Enqueue
- Defined in:
- lib/use_cases/step_adapters/enqueue.rb
Instance Attribute Summary
Attributes inherited from Abstract
#failure, #name, #object, #options
Instance Method Summary collapse
Methods inherited from Abstract
#bind, #call, #callable_args, #callable_args_count, #callable_method, #callable_object, #callable_proc, #external?, #hashed_args, #initialize, #missing?, #pass_option, #previous_input_param_name, #previous_step_result, #selects_external_args?, #with_option
Constructor Details
This class inherits a constructor from UseCases::StepAdapters::Abstract
Instance Method Details
#do_call(*base_args) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/use_cases/step_adapters/enqueue.rb', line 6 def do_call(*base_args) args = [object.class.name, name.to_s, *base_args] args = ::UseCases::StepActiveJobAdapter.serialize_step_arguments(args) = .slice(:queue, :wait, :wait_until, :priority) ::UseCases::StepActiveJobAdapter.set().perform_later(*args) Success(previous_step_result.value) end |