Class: Protocol::GRPC::Streaming
- Inherits:
-
Object
- Object
- Protocol::GRPC::Streaming
- 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
-
#message_class ⇒ Object
readonly
Returns the value of attribute message_class.
Instance Method Summary collapse
-
#initialize(message_class) ⇒ Streaming
constructor
Initialize a new Streaming wrapper.
- #The wrapped message class=(wrappedmessage) ⇒ Object
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 = end |
Instance Attribute Details
#message_class ⇒ Object (readonly)
Returns the value of attribute message_class.
20 21 22 |
# File 'lib/protocol/grpc/interface.rb', line 20 def @message_class end |
Instance Method Details
#The wrapped message class=(wrappedmessage) ⇒ Object
20 |
# File 'lib/protocol/grpc/interface.rb', line 20 attr :message_class |