class FastCqrs::Transaction

A base transaction class to process the request. Usage: Inherit and override the call

Public Class Methods

inherited(klass) click to toggle source
Calls superclass method
# File lib/fast_cqrs/transaction.rb, line 13
def self.inherited(klass)
  super
  klass.class_eval do
    include Dry::Monads[:do, :result, :try]
    include Dry::Matcher.for(:call, with: Dry::Matcher::ResultMatcher)
  end
end

Public Instance Methods

call(_input, _auth: nil) click to toggle source
# File lib/fast_cqrs/transaction.rb, line 21
def call(_input, _auth: nil)
  Success()
end