Class: Protocol::GRPC::Streaming

Inherits:
Object
  • Object
show all
Defined in:
lib/protocol/grpc/interface.rb

Overview

Wrapper class to mark a message type as streamed. Used with the stream() helper method in RPC definitions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message_class) ⇒ Streaming

Initialize a new Streaming wrapper.



15
16
17
# File 'lib/protocol/grpc/interface.rb', line 15

def initialize(message_class)
	@message_class = message_class
end

Instance Attribute Details

#message_classObject (readonly)

Returns the value of attribute message_class.



20
21
22
# File 'lib/protocol/grpc/interface.rb', line 20

def message_class
  @message_class
end

Instance Method Details

#The wrapped message class=(wrappedmessage) ⇒ Object



20
# File 'lib/protocol/grpc/interface.rb', line 20

attr :message_class