class Mmtrix::Agent::HTTPClients::HTTPClientResponse
Attributes
response[R]
Public Class Methods
new(response)
click to toggle source
# File lib/mmtrix/agent/http_clients/httpclient_wrappers.rb, line 11 def initialize(response) @response = response end
Public Instance Methods
[](key)
click to toggle source
# File lib/mmtrix/agent/http_clients/httpclient_wrappers.rb, line 15 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/mmtrix/agent/http_clients/httpclient_wrappers.rb, line 24 def to_hash response.headers end