Class: Cyclid::API::Plugins::Dispatcher
- Defined in:
- app/cyclid/plugins/dispatcher.rb
Overview
Base class for Dispatcher
Direct Known Subclasses
Class Method Summary collapse
-
.human_name ⇒ Object
Return the ‘human’ name for the plugin type.
Instance Method Summary collapse
-
#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.).
Methods inherited from Base
config?, config_schema, default_config, get_config, register_plugin, set_config, update_config
Class Method Details
.human_name ⇒ Object
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 |