Class: WisperKafka::Consumer
- Inherits:
-
Racecar::Consumer
- Object
- Racecar::Consumer
- WisperKafka::Consumer
- Defined in:
- lib/wisper_kafka/consumer.rb
Instance Method Summary collapse
-
#process(message) ⇒ Object
:reek:UtilityFunction.
Instance Method Details
#process(message) ⇒ Object
:reek:UtilityFunction
11 12 13 14 15 16 17 18 19 |
# File 'lib/wisper_kafka/consumer.rb', line 11 def process() = JSON.parse(.value, symbolize_names: true) subscriber = .fetch(:subscriber) event = .fetch(:event) args = .fetch(:args) Object.const_get(subscriber).public_send(event, *args) end |