Class: PublishingPlatformMessageQueueConsumer::MessageConsumer
- Inherits:
-
Object
- Object
- PublishingPlatformMessageQueueConsumer::MessageConsumer
- Defined in:
- lib/publishing_platform_message_queue_consumer/message_consumer.rb
Instance Method Summary collapse
-
#initialize(processors:) ⇒ MessageConsumer
constructor
A new instance of MessageConsumer.
- #process(message) ⇒ Object
Constructor Details
#initialize(processors:) ⇒ MessageConsumer
Returns a new instance of MessageConsumer.
3 4 5 |
# File 'lib/publishing_platform_message_queue_consumer/message_consumer.rb', line 3 def initialize(processors:) @processors = processors end |
Instance Method Details
#process(message) ⇒ Object
7 8 9 10 11 |
# File 'lib/publishing_platform_message_queue_consumer/message_consumer.rb', line 7 def process() @processors.each do |processor| break unless processor.process() end end |