Class: Invoker::IPC::Message::Base
- Inherits:
-
Object
- Object
- Invoker::IPC::Message::Base
- Defined in:
- lib/invoker/ipc/message.rb
Direct Known Subclasses
Add, AddHttp, DnsCheck, DnsCheckResponse, List, ListResponse, Ping, Pong, Process, Reload, Remove, Tail, TailResponse
Instance Method Summary collapse
- #command_handler_klass ⇒ Object
-
#initialize(options) ⇒ Base
constructor
A new instance of Base.
- #message_type ⇒ Object
Constructor Details
#initialize(options) ⇒ Base
Returns a new instance of Base.
92 93 94 95 96 97 98 |
# File 'lib/invoker/ipc/message.rb', line 92 def initialize() .each do |key, value| if self.respond_to?("#{key}=") send("#{key}=", value) end end end |
Instance Method Details
#command_handler_klass ⇒ Object
104 105 106 |
# File 'lib/invoker/ipc/message.rb', line 104 def command_handler_klass Invoker::IPC.const_get("#{IPC.camelize()}Command") end |
#message_type ⇒ Object
100 101 102 |
# File 'lib/invoker/ipc/message.rb', line 100 def Invoker::IPC.underscore(self.class.name).split("/").last end |