Class: Karafka::Setup::Configurators::Base
- Inherits:
-
Object
- Object
- Karafka::Setup::Configurators::Base
- Extended by:
- ActiveSupport::DescendantsTracker
- Defined in:
- lib/karafka/setup/configurators/base.rb
Overview
Karafka has come components that it relies on (like Sidekiq) We need to configure all of them only when the framework was set up. Any class that descends from this one will be automatically invoked upon setup (after it)
Direct Known Subclasses
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
-
#initialize(config) ⇒ Karafka::Config::Base
constructor
Configurator for a given component.
-
#setup ⇒ Object
This method needs to be implemented in a subclass.
Constructor Details
#initialize(config) ⇒ Karafka::Config::Base
Returns configurator for a given component.
24 25 26 |
# File 'lib/karafka/setup/configurators/base.rb', line 24 def initialize(config) @config = config end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
20 21 22 |
# File 'lib/karafka/setup/configurators/base.rb', line 20 def config @config end |
Instance Method Details
#setup ⇒ Object
This method needs to be implemented in a subclass
29 30 31 |
# File 'lib/karafka/setup/configurators/base.rb', line 29 def setup raise NotImplementedError end |