Module: Lotus::Interactor::Interface
- Defined in:
- lib/lotus/interactor.rb
Overview
Interactor interface
Instance Method Summary collapse
-
#call ⇒ Lotus::Interactor::Result
Triggers the operation and return a result.
-
#initialize(*args) ⇒ Lotus::Interactor
Initialize an interactor.
Instance Method Details
#call ⇒ Lotus::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.
248 249 250 |
# File 'lib/lotus/interactor.rb', line 248 def call _call { super } end |
#initialize(*args) ⇒ Lotus::Interactor
Initialize an interactor
It accepts arbitrary number of arguments. Developers can override it.
169 170 171 172 173 |
# File 'lib/lotus/interactor.rb', line 169 def initialize(*args) super ensure @__result = ::Lotus::Interactor::Result.new end |