Class: Cyclid::API::Plugins::Dispatcher

Inherits:
Base
  • Object
show all
Defined in:
app/cyclid/plugins/dispatcher.rb

Overview

Base class for Dispatcher

Direct Known Subclasses

Local

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

config?, config_schema, default_config, get_config, register_plugin, set_config, update_config

Class Method Details

.human_nameObject

Return the ‘human’ name for the plugin type



25
26
27
# File 'app/cyclid/plugins/dispatcher.rb', line 25

def self.human_name
  'dispatcher'
end

Instance Method Details

#dispatch(job, record, callback = nil) ⇒ Object

Dispatch a job to a worker and return some opaque data that can be used to identify that job (E.g. an ID, UUID etc.)



31
32
# File 'app/cyclid/plugins/dispatcher.rb', line 31

def dispatch(job, record, callback = nil)
end