Module: Mumukit::Nuntius::JobConsumer

Extended by:
TaskConsumer
Defined in:
lib/mumukit/nuntius/job_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/job_consumer.rb', line 14

def builder
  Mumukit::Nuntius::JobConsumer::Builder
end

.skip_process?(body) ⇒ Boolean

Returns:

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



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

def task_type
  'job'
end

.tasks_typeObject



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

def tasks_type
  task_type.pluralize
end