Class: GRPC::RpcDesc::Stream

Inherits:
Object
  • Object
show all
Defined in:
src/ruby/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.



28
29
30
# File 'src/ruby/lib/grpc/generic/rpc_desc.rb', line 28

def initialize(type)
  @type = type
end

Instance Attribute Details

#typeObject

Returns the value of attribute type.



26
27
28
# File 'src/ruby/lib/grpc/generic/rpc_desc.rb', line 26

def type
  @type
end