Class: NoProto

Inherits:
NoProtoService show all
Defined in:
src/ruby/bin/noproto_server.rb

Overview

an implementation of the non-protobuf service.

Instance Method Summary collapse

Methods included from GRPC::GenericService

included, underscore

Constructor Details

#initialize(_default_var = 'ignored') ⇒ NoProto

Returns a new instance of NoProto.



47
48
# File 'src/ruby/bin/noproto_server.rb', line 47

def initialize(_default_var = 'ignored')
end

Instance Method Details

#an_rpc(req, _call) ⇒ Object



50
51
52
53
# File 'src/ruby/bin/noproto_server.rb', line 50

def an_rpc(req, _call)
  GRPC.logger.info('echo service received a request')
  req
end