Class: AvroMachine::Responder
- Inherits:
-
Avro::IPC::Responder
- Object
- Avro::IPC::Responder
- AvroMachine::Responder
- Defined in:
- lib/avro_machine/responder.rb
Class Method Summary collapse
Instance Method Summary collapse
- #call(message, request) ⇒ Object
-
#initialize ⇒ Responder
constructor
A new instance of Responder.
Constructor Details
#initialize ⇒ Responder
Returns a new instance of Responder.
7 8 9 |
# File 'lib/avro_machine/responder.rb', line 7 def initialize super(self.class.protocol) end |
Class Method Details
.protocol ⇒ Object
3 4 5 |
# File 'lib/avro_machine/responder.rb', line 3 def self.protocol raise NotImplemented, "need to implement a protocol method" end |
Instance Method Details
#call(message, request) ⇒ Object
11 12 13 |
# File 'lib/avro_machine/responder.rb', line 11 def call(, request) send(.name, request) end |