Method: ActiveInteractor::Interactor::Perform#perform

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

#performObject

This method is abstract.

interactors should override #perform with the appropriate steps and context mutations required for the interactor to do its work.

The steps to run when an interactor is called. An interactor's #perform method should never be called directly on an interactor instance and should instead be invoked by the interactor's class method .perform.

Examples:

class MyInteractor < ActiveInteractor::Base
  def perform
    context.first_name = 'Aaron'
  end
end

MyInteractor.perform
#=> <#MyInteractor::Context first_name='Aaron'>

Since:

  • 0.1.0



210
# File 'lib/active_interactor/interactor/perform.rb', line 210

def perform; end