Class: Typhoeus::Response
- Inherits:
-
Object
- Object
- Typhoeus::Response
- Defined in:
- lib/labclient/http.rb
Overview
Add Data : OJ Parsing
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
65 66 67 |
# File 'lib/labclient/http.rb', line 65 def path @path end |
Instance Method Details
#data ⇒ Object
67 68 69 70 71 |
# File 'lib/labclient/http.rb', line 67 def data return @data if @data @data = process_body end |
#friendly_error ⇒ Object
83 84 85 86 87 88 89 90 |
# File 'lib/labclient/http.rb', line 83 def friendly_error = if data data[:message] || data[:error] || data else end "#{code} - #{}" end |
#inspect ⇒ Object
61 62 63 |
# File 'lib/labclient/http.rb', line 61 def inspect "#<TyphoeusResponse code: #{code}>" end |