Class: SmoothOperator::RemoteCall::Typhoeus
- Defined in:
- lib/smooth_operator/remote_call/typhoeus.rb
Instance Attribute Summary
Attributes inherited from Base
#body, #headers, #http_status, #object, #response
Instance Method Summary collapse
-
#initialize(response) ⇒ Typhoeus
constructor
A new instance of Typhoeus.
Methods inherited from Base
#client_error?, #connection_failed?, #cookie, #data, #error?, #not_found?, #not_processed?, #ok?, #parsed_response, #server_error?, #status, #timeout?
Constructor Details
#initialize(response) ⇒ Typhoeus
Returns a new instance of Typhoeus.
7 8 9 10 11 12 13 |
# File 'lib/smooth_operator/remote_call/typhoeus.rb', line 7 def initialize(response) @response = response @body = response.body @http_status = response.code @headers = response.headers_hash end |