Module: Mumukit::Nuntius::JobConsumer
- Extended by:
- TaskConsumer
- Defined in:
- lib/mumukit/nuntius/job_consumer.rb
Defined Under Namespace
Classes: Builder
Class Method Summary
collapse
handle, handle_tasks!, handled_tasks, handlers, handles?, log_exception, log_unknown_task, register_handlers!, start!
Class Method Details
.skip_process?(body) ⇒ Boolean
26
27
28
|
# File 'lib/mumukit/nuntius/job_consumer.rb', line 26
def skip_process?(body)
body[:data][:sender].try { |sender| sender != Mumukit::Nuntius.config.app_name }
end
|
.task_type ⇒ Object
22
23
24
|
# File 'lib/mumukit/nuntius/job_consumer.rb', line 22
def task_type
'job'
end
|
.tasks_type ⇒ Object
18
19
20
|
# File 'lib/mumukit/nuntius/job_consumer.rb', line 18
def tasks_type
task_type.pluralize
end
|