Class: ActiveInteractor::Base
- Inherits:
-
Object
- Object
- ActiveInteractor::Base
- Includes:
- Interactor
- Defined in:
- lib/active_interactor/base.rb
Overview
The Base Interactor class inherited by all interactors
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(context = {}) ⇒ ActiveInteractor::Base
constructor
A new instance of Base.
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
15 16 17 |
# File 'lib/active_interactor/base.rb', line 15 def initialize(context = {}) @context = self.class.context_class.new(self, context) end |