Class: ActiveInteractor::Base

Inherits:
Object
  • Object
show all
Includes:
Interactor
Defined in:
lib/active_interactor/base.rb

Overview

The Base Interactor class inherited by all interactors

Author:

Since:

  • 0.0.1

Version:

  • 0.1

Direct Known Subclasses

Organizer

Instance Method Summary collapse

Methods included from Interactor

#fail_on_invalid_context?, #perform, #rollback, #should_clean_context?, #skip_clean_context!

Constructor Details

#initialize(context = {}) ⇒ ActiveInteractor::Base

A new instance of ActiveInteractor::Base

Since:

  • 0.0.1


14
15
16
# File 'lib/active_interactor/base.rb', line 14

def initialize(context = {})
  @context = self.class.context_class.new(self, context)
end