Class: NexusCqrs::BaseQueryHandler

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

Overview

Base class for all query 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(query) ⇒ Object

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

Parameters:

Since:

  • 0.1.0



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

def call(query)
end