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.
129 130 131 |
# File 'lib/jaeger/encoders/thrift_encoder.rb', line 129 def initialize @size = 0 end |
Instance Attribute Details
#size ⇒ Object
Returns the value of attribute size.
127 128 129 |
# File 'lib/jaeger/encoders/thrift_encoder.rb', line 127 def size @size end |
Instance Method Details
#close ⇒ Object
141 |
# File 'lib/jaeger/encoders/thrift_encoder.rb', line 141 def close; end |
#flush ⇒ Object
137 138 139 |
# File 'lib/jaeger/encoders/thrift_encoder.rb', line 137 def flush @size = 0 end |
#write(buf) ⇒ Object
133 134 135 |
# File 'lib/jaeger/encoders/thrift_encoder.rb', line 133 def write(buf) @size += buf.size end |