Class: Flare::HttpTransport::Response
- Inherits:
-
Struct
- Object
- Struct
- Flare::HttpTransport::Response
- Defined in:
- lib/flare/http_transport.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#code ⇒ Object
Returns the value of attribute code.
-
#headers ⇒ Object
Returns the value of attribute headers.
Instance Method Summary collapse
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body
16 17 18 |
# File 'lib/flare/http_transport.rb', line 16 def body @body end |
#code ⇒ Object
Returns the value of attribute code
16 17 18 |
# File 'lib/flare/http_transport.rb', line 16 def code @code end |
#headers ⇒ Object
Returns the value of attribute 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 |