Class: Karafka::Web::Pro::Commanding::Handlers::Topics::Commands::Base
- Inherits:
-
Object
- Object
- Karafka::Web::Pro::Commanding::Handlers::Topics::Commands::Base
- Defined in:
- lib/karafka/web/pro/commanding/handlers/topics/commands/base.rb
Overview
Base class for all the topic related commands handlers
Instance Method Summary collapse
-
#call ⇒ Object
Runs the command.
-
#initialize(listener, client, request) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(listener, client, request) ⇒ Base
Returns a new instance of Base.
45 46 47 48 49 |
# File 'lib/karafka/web/pro/commanding/handlers/topics/commands/base.rb', line 45 def initialize(listener, client, request) @listener = listener @client = client @request = request end |
Instance Method Details
#call ⇒ Object
Runs the command
52 53 54 |
# File 'lib/karafka/web/pro/commanding/handlers/topics/commands/base.rb', line 52 def call raise NotImplementedError, "Implement in a subclass" end |