Method: ActiveInteractor::Interactor::Perform#with_options

Defined in:
lib/active_interactor/interactor/perform.rb

#with_options(options) ⇒ self

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Set options for an interactor's #perform

Parameters:

Returns:

Since:

  • 1.0.0



244
245
246
247
248
249
250
251
# File 'lib/active_interactor/interactor/perform.rb', line 244

def with_options(options)
  @options = if options.is_a?(ActiveInteractor::Interactor::Perform::Options)
               options
             else
               ActiveInteractor::Interactor::Perform::Options.new(options)
             end
  self
end