Method: Typhoeus::Response#initialize
- Defined in:
- lib/typhoeus/response.rb
#initialize(params = {}) ⇒ Response
Returns a new instance of Response.
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/typhoeus/response.rb', line 8 def initialize(params = {}) @code = params[:code] @headers = params[:headers] @body = params[:body] @time = params[:time] @requested_url = params[:requested_url] @requested_http_method = params[:requested_http_method] @start_time = params[:start_time] @request = params[:request] end |