Class: Thrift::TBidiOutboundStream
- Inherits:
-
Object
- Object
- Thrift::TBidiOutboundStream
- Defined in:
- lib/thrift/bidi_stream.rb
Instance Method Summary collapse
- #close ⇒ Object
-
#initialize(bidi_stream) ⇒ TBidiOutboundStream
constructor
A new instance of TBidiOutboundStream.
- #send(msg) ⇒ Object
Constructor Details
#initialize(bidi_stream) ⇒ TBidiOutboundStream
Returns a new instance of TBidiOutboundStream.
17 18 19 |
# File 'lib/thrift/bidi_stream.rb', line 17 def initialize(bidi_stream) @bidi_stream = bidi_stream end |
Instance Method Details
#close ⇒ Object
25 26 27 |
# File 'lib/thrift/bidi_stream.rb', line 25 def close @bidi_stream.outbound_close end |
#send(msg) ⇒ Object
21 22 23 |
# File 'lib/thrift/bidi_stream.rb', line 21 def send(msg) @bidi_stream.send(msg) end |