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.
71 72 73 |
# File 'lib/labclient/http.rb', line 71 def path @path end |
Instance Method Details
#data ⇒ Object
73 74 75 76 77 |
# File 'lib/labclient/http.rb', line 73 def data return @data if @data @data = process_body end |
#friendly_error ⇒ Object
89 90 91 92 93 94 95 96 |
# File 'lib/labclient/http.rb', line 89 def friendly_error = if data data[:message] || data[:error] || data else end "#{code} - #{}" end |
#inspect ⇒ Object
67 68 69 |
# File 'lib/labclient/http.rb', line 67 def inspect "#<TyphoeusResponse code: #{code}>" end |