Class: BasicJRPC::FAFClient
Overview
Fire And Forget Client
Instance Method Summary collapse
Methods inherited from Client
Constructor Details
This class inherits a constructor from BasicJRPC::Client
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class BasicJRPC::Client
Instance Method Details
#send_request(payload) ⇒ Object
37 38 39 40 41 42 |
# File 'lib/basicjrpc/client.rb', line 37 def send_request payload payload['message_id'] = SecureRandom.hex(10) payload['response'] = true payload['caller'] = caller.first(10) @redis.rpush(@queue, Oj.dump(payload)) end |