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.



62
63
# File 'src/ruby/bin/noproto_server.rb', line 62

def initialize(_default_var = 'ignored')
end

Instance Method Details

#an_rpc(req, _call) ⇒ Object



65
66
67
68
# File 'src/ruby/bin/noproto_server.rb', line 65

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