Class: Karafka::Web::Pro::Commanding::Handlers::Partitions::Commands::Base
- Inherits:
-
Object
- Object
- Karafka::Web::Pro::Commanding::Handlers::Partitions::Commands::Base
- Defined in:
- lib/karafka/web/pro/commanding/handlers/partitions/commands/base.rb
Overview
Base class for all the partition 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.
21 22 23 24 25 |
# File 'lib/karafka/web/pro/commanding/handlers/partitions/commands/base.rb', line 21 def initialize(listener, client, request) @listener = listener @client = client @request = request end |
Instance Method Details
#call ⇒ Object
Runs the command
28 29 30 |
# File 'lib/karafka/web/pro/commanding/handlers/partitions/commands/base.rb', line 28 def call raise NotImplementedError, 'Implement in a subclass' end |