Class: Gruf::Commander::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/gruf/commander/command.rb

Overview

Abstract class to be extended and implemented in your command classes.

Instance Method Summary collapse

Instance Method Details

#call(request) ⇒ Object

:nocov:

Parameters:

Raises:

  • (NotImplementedError)


28
29
30
# File 'lib/gruf/commander/command.rb', line 28

def call(request)
  raise NotImplementedError, "Please implement :call on the command to handle #{request.class}"
end