Module: Hanami::Interactor::Interface
- 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 interface
Instance Method Summary collapse
-
#call(*args) ⇒ Hanami::Interactor::Result
Triggers the operation and return a result.
- #validate!(*args) ⇒ Object private
Instance Method Details
#call(*args) ⇒ Hanami::Interactor::Result
Triggers the operation and return a result.
All the exposed instance variables will be available in the result.
ATTENTION: This must be implemented by the including class.
Source: | on GitHub
def call(*args) @__result = ::Hanami::Interactor::Result.new _call(*args) { super } end |
#validate!(*args) ⇒ Object (private)
Source: | on GitHub
def validate!(*args) fail! unless valid?(*args) end |