Class: Thrift::Processor::UnaryProcessorFunction

Inherits:
BaseProcessorFunction show all
Defined in:
lib/thrift/processor.rb

Instance Method Summary collapse

Methods inherited from BaseProcessorFunction

#initialize

Constructor Details

This class inherits a constructor from Thrift::Processor::BaseProcessorFunction

Instance Method Details

#process(_seqid, iprot, _oprot) ⇒ Object



87
88
89
90
91
92
93
94
95
# File 'lib/thrift/processor.rb', line 87

def process(_seqid, iprot, _oprot)
  args = read_args(iprot)

  @middleware.handle_unary(@fname, args) do |args|
    @method.call(args)
  end

  true
end