module FunctionalInteractor

Include this to support interactor interface

Attributes

context[R]

Public Instance Methods

call(context) click to toggle source
# File lib/functional_interactor.rb, line 21
def call(context)
  [:ok, context]
end
compose(interactor) click to toggle source

| aliases to compose, so you can do something like: (CreateOrder | ChargeCard.new(token: params) | SendThankYou).call

# File lib/functional_interactor.rb, line 15
def compose(interactor)
  Interactors::Sequence.new.compose(self).compose(interactor)
end
Also aliased as: |, |
|(interactor)
Alias for: compose