Class: Workling::Clients::NotRemoteClient

Inherits:
Base
  • Object
show all
Defined in:
lib/workling/clients/not_remote_client.rb

Instance Method Summary collapse

Methods inherited from Base

#close, #connect, installed?, load, #logger, #request, #retrieve, #subscribe

Instance Method Details

#dispatch(clazz, method, options = {}) ⇒ Object



8
9
10
11
12
13
# File 'lib/workling/clients/not_remote_client.rb', line 8

def dispatch(clazz, method, options = {})
  options = Marshal.load(Marshal.dump(options)) # get this to behave more like the remote runners
  Workling.find(clazz, method).dispatch_to_worker_method(method, options)

  return nil # nada. niente.
end