Class: Jaeger::Encoders::ThriftEncoder::DummyTransport

Inherits:
Object
  • Object
show all
Defined in:
lib/jaeger/encoders/thrift_encoder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDummyTransport

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

#sizeObject

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

#closeObject



128
# File 'lib/jaeger/encoders/thrift_encoder.rb', line 128

def close; end

#flushObject



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