Module: Hanami::Interactor::LegacyInterface
- Defined in:
- lib/hanami/interactor.rb
Overview
Interactor legacy interface
Instance Method Summary collapse
-
#call ⇒ Hanami::Interactor::Result
Triggers the operation and return a result.
-
#initialize(*args, **kwargs) ⇒ Hanami::Interactor
Initialize an interactor.
Instance Method Details
#call ⇒ Hanami::Interactor::Result
Triggers the operation and return a result.
All the instance variables will be available in the result.
ATTENTION: This must be implemented by the including class.
264 265 266 |
# File 'lib/hanami/interactor.rb', line 264 def call _call { super } end |
#initialize(*args, **kwargs) ⇒ Hanami::Interactor
Initialize an interactor
It accepts arbitrary number of arguments. Developers can override it.
185 186 187 188 189 |
# File 'lib/hanami/interactor.rb', line 185 def initialize(*args, **kwargs) super ensure @__result = ::Hanami::Interactor::Result.new end |