Class: AvroMachine::Responder

Inherits:
Avro::IPC::Responder
  • Object
show all
Defined in:
lib/avro_machine/responder.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeResponder

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

.protocolObject

Raises:

  • (NotImplemented)


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(message, request)
  send(message.name, request)
end