Class: Gruf::Controllers::Request::Type

Inherits:
Object
  • Object
show all
Defined in:
lib/gruf/controllers/request.rb

Overview

Abstract representation of a gRPC request type

Instance Method Summary collapse

Constructor Details

#initialize(rpc_desc) ⇒ Type

Initialize a new request type object

Parameters:

  • rpc_desc (GRPC::RpcDesc)

    The RPC descriptor for the request type



47
48
49
# File 'lib/gruf/controllers/request.rb', line 47

def initialize(rpc_desc)
  @rpc_desc = rpc_desc
end