Class: Jaeger::Encoders::ThriftEncoder::DummyTransport
- Inherits:
-
Object
- Object
- Jaeger::Encoders::ThriftEncoder::DummyTransport
- Defined in:
- lib/jaeger/encoders/thrift_encoder.rb
Instance Attribute Summary collapse
-
#size ⇒ Object
Returns the value of attribute size.
Instance Method Summary collapse
- #close ⇒ Object
- #flush ⇒ Object
-
#initialize ⇒ DummyTransport
constructor
A new instance of DummyTransport.
- #write(buf) ⇒ Object
Constructor Details
#initialize ⇒ DummyTransport
Returns a new instance of DummyTransport.
116 117 118 |
# File 'lib/jaeger/encoders/thrift_encoder.rb', line 116 def initialize @size = 0 end |
Instance Attribute Details
#size ⇒ Object
Returns the value of attribute size.
114 115 116 |
# File 'lib/jaeger/encoders/thrift_encoder.rb', line 114 def size @size end |
Instance Method Details
#close ⇒ Object
128 |
# File 'lib/jaeger/encoders/thrift_encoder.rb', line 128 def close; end |
#flush ⇒ Object
124 125 126 |
# File 'lib/jaeger/encoders/thrift_encoder.rb', line 124 def flush @size = 0 end |
#write(buf) ⇒ Object
120 121 122 |
# File 'lib/jaeger/encoders/thrift_encoder.rb', line 120 def write(buf) @size += buf.size end |