class OneApm::Support::HTTPClients::HTTPClientResponse

Attributes

response[R]

Public Class Methods

new(response) click to toggle source
# File lib/one_apm/support/http_clients/httpclient_wrappers.rb, line 9
def initialize(response)
  @response = response
end

Public Instance Methods

[](key) click to toggle source
# File lib/one_apm/support/http_clients/httpclient_wrappers.rb, line 13
def [](key)
  response.headers.each do |k,v|
    if key.downcase == k.downcase
      return v
    end
  end
  nil
end
to_hash() click to toggle source
# File lib/one_apm/support/http_clients/httpclient_wrappers.rb, line 22
def to_hash
  response.headers
end