Class: Net::HTTPResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/nerdz/rebinds.rb

Instance Method Summary collapse

Instance Method Details

#[](key) ⇒ Object



60
61
62
63
64
# File 'lib/nerdz/rebinds.rb', line 60

def [](key)
  @header[key.to_s.downcase].join(', ')
rescue
  nil
end

#keysObject



66
67
68
# File 'lib/nerdz/rebinds.rb', line 66

def keys
  @header.keys
end

#valuesObject



70
71
72
# File 'lib/nerdz/rebinds.rb', line 70

def values
  @header.values
end