Class: Sqspoller::WorkerTask
- Inherits:
-
Object
- Object
- Sqspoller::WorkerTask
- Defined in:
- lib/sqspoller/worker_task.rb
Instance Method Summary collapse
- #handle(message, message_id) ⇒ Object
-
#initialize(worker_configuration) ⇒ WorkerTask
constructor
A new instance of WorkerTask.
Constructor Details
#initialize(worker_configuration) ⇒ WorkerTask
Returns a new instance of WorkerTask.
7 8 9 |
# File 'lib/sqspoller/worker_task.rb', line 7 def initialize(worker_configuration) @message_handler = SqsPoller::Process::MessageHandler.new(worker_configuration) end |
Instance Method Details
#handle(message, message_id) ⇒ Object
11 12 13 |
# File 'lib/sqspoller/worker_task.rb', line 11 def handle(, ) @message_handler.handle(, ) end |