Class: Invoker::IPC::PingCommand

Inherits:
BaseCommand show all
Defined in:
lib/invoker/ipc/ping_command.rb

Instance Attribute Summary

Attributes inherited from BaseCommand

#client_socket

Instance Method Summary collapse

Methods inherited from BaseCommand

#initialize, #send_data

Constructor Details

This class inherits a constructor from Invoker::IPC::BaseCommand

Instance Method Details

#run_command(message_object) ⇒ Object



4
5
6
7
# File 'lib/invoker/ipc/ping_command.rb', line 4

def run_command(message_object)
  pong = Invoker::IPC::Message::Pong.new(status: 'pong')
  send_data(pong)
end