Module: Mumukit::Nuntius::EventConsumer

Extended by:
TaskConsumer
Defined in:
lib/mumukit/nuntius/event_consumer.rb

Defined Under Namespace

Classes: Builder

Class Method Summary collapse

Methods included from TaskConsumer

handle, handle_tasks!, handled_tasks, handlers, handles?, log_exception, log_unknown_task, register_handlers!, start!

Class Method Details

.builderObject



14
15
16
# File 'lib/mumukit/nuntius/event_consumer.rb', line 14

def builder
  Mumukit::Nuntius::EventConsumer::Builder
end

.skip_process?(body) ⇒ Boolean

Returns:

  • (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_typeObject



22
23
24
# File 'lib/mumukit/nuntius/event_consumer.rb', line 22

def task_type
  'event'
end

.tasks_typeObject



18
19
20
# File 'lib/mumukit/nuntius/event_consumer.rb', line 18

def tasks_type
  task_type.pluralize
end