Module: Hanami::Interactor::LegacyInterface
- Defined in:
- gems/gems/hanami-utils-1.3.3/lib/hanami/interactor.rb,
gems/gems/hanami-utils-1.3.8/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) ⇒ Hanami::Interactor
Initialize an interactor.
- #validate! ⇒ Object private
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.
Source: | on GitHub
def call _call { super } end |
#initialize(*args) ⇒ Hanami::Interactor
Initialize an interactor
It accepts arbitrary number of arguments. Developers can override it.
Source: | on GitHub
def initialize(*args) super ensure @__result = ::Hanami::Interactor::Result.new end |