class GRPC::OpenTracing::HPACKCarrier

Public Class Methods

new(wrapped) click to toggle source
# File lib/grpc/opentracing/hpack_carrier.rb, line 4
def initialize(wrapped)
  @wrapped = wrapped
end

Public Instance Methods

[](key) click to toggle source
# File lib/grpc/opentracing/hpack_carrier.rb, line 8
def [](key)
  @wrapped[key.downcase]
end
[]=(key, value) click to toggle source
# File lib/grpc/opentracing/hpack_carrier.rb, line 12
def []=(key, value)
  return unless value

  @wrapped[key.downcase] = value
end
each(&block) click to toggle source
# File lib/grpc/opentracing/hpack_carrier.rb, line 18
def each(&block)
  @wrapped.each(&block)
end