Class: NexusCqrs::BaseCommandHandler

Inherits:
Object
  • Object
show all
Includes:
Auth
Defined in:
lib/nexus_cqrs/base_command_handler.rb

Overview

Base class for all command handlers. Should always declare a ‘call` method for invoking the handler.

Since:

  • 0.1.0

Instance Method Summary collapse

Methods included from Auth

#authorize, #current_user, #permission_provider, #pundit_user

Instance Method Details

#call(command) ⇒ Object

Method for invoking this handler - all command logic should be contained in this method.

Parameters:

Since:

  • 0.1.0



12
13
# File 'lib/nexus_cqrs/base_command_handler.rb', line 12

def call(command)
end