Class: Flare::HttpTransport::Response

Inherits:
Struct
  • Object
show all
Defined in:
lib/flare/http_transport.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



16
17
18
# File 'lib/flare/http_transport.rb', line 16

def body
  @body
end

#codeObject

Returns the value of attribute code

Returns:

  • (Object)

    the current value of code



16
17
18
# File 'lib/flare/http_transport.rb', line 16

def code
  @code
end

#headersObject

Returns the value of attribute headers

Returns:

  • (Object)

    the current value of headers



16
17
18
# File 'lib/flare/http_transport.rb', line 16

def headers
  @headers
end

Instance Method Details

#header(name) ⇒ Object



17
18
19
20
# File 'lib/flare/http_transport.rb', line 17

def header(name)
  return nil unless headers
  headers[name] || headers[name.downcase] || headers[name.upcase]
end