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



59
60
61
# File 'lib/gruf/controllers/request.rb', line 59

def initialize(rpc_desc)
  @rpc_desc = rpc_desc
end