Class: GRPC::RpcDesc::Stream

Inherits:
Object
  • Object
show all
Defined in:
lib/grpc/generic/rpc_desc.rb

Overview

Used to wrap a message class to indicate that it needs to be streamed.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type) ⇒ Stream

Returns a new instance of Stream.



43
44
45
# File 'lib/grpc/generic/rpc_desc.rb', line 43

def initialize(type)
  @type = type
end

Instance Attribute Details

#typeObject

Returns the value of attribute type.



41
42
43
# File 'lib/grpc/generic/rpc_desc.rb', line 41

def type
  @type
end