Class: MQRPC::Functions::Ping
- Inherits:
-
Object
- Object
- MQRPC::Functions::Ping
- Defined in:
- lib/mqrpc/functions/ping.rb
Instance Method Summary collapse
-
#PingRequestHandler(request) {|response| ... } ⇒ Object
handle MQRPC::Messages::PingRequest, :PingRequestHandler.
Instance Method Details
#PingRequestHandler(request) {|response| ... } ⇒ Object
handle MQRPC::Messages::PingRequest, :PingRequestHandler
7 8 9 10 11 12 13 |
# File 'lib/mqrpc/functions/ping.rb', line 7 def PingRequestHandler(request) MQRPC::logger.debug "received PingRequest (#{request.pingdata})" response = MQRPC::Messages::PingResponse.new response.id = request.id response.pingdata = request.pingdata yield response end |