class Rack::App::Worker::ClientProxy::Wrapper

Public Class Methods

new(exchange) click to toggle source
# File lib/rack/app/worker/client_proxy/wrapper.rb, line 4
def initialize(exchange)
  @exchange = exchange
end

Protected Instance Methods

method_missing(method_name, *args) click to toggle source
# File lib/rack/app/worker/client_proxy/wrapper.rb, line 10
def method_missing(method_name, *args)
  headers = {'method_name' => method_name.to_s}
  @exchange.publish(::YAML.dump(args), :headers => headers)
  nil
end