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.



129
130
131
# File 'lib/jaeger/encoders/thrift_encoder.rb', line 129

def initialize
  @size = 0
end

Instance Attribute Details

#sizeObject

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

#closeObject



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

def close; end

#flushObject



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