Module: Mumukit::Nuntius::EventConsumer
- Extended by:
- TaskConsumer
- Defined in:
- lib/mumukit/nuntius/event_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
30
31
32
|
# File 'lib/mumukit/nuntius/event_consumer.rb', line 30
def skip_process?(body)
body[:data][:sender] == Mumukit::Nuntius.config.app_name
end
|
.task_type ⇒ Object
22
23
24
|
# File 'lib/mumukit/nuntius/event_consumer.rb', line 22
def task_type
'event'
end
|
.tasks_type ⇒ Object
18
19
20
|
# File 'lib/mumukit/nuntius/event_consumer.rb', line 18
def tasks_type
task_type.pluralize
end
|