Method: HTTParty::Response#initialize
- Defined in:
- lib/httparty/response.rb
#initialize(response, parsed_response) ⇒ Response
Returns a new instance of Response.
33 34 35 36 37 38 |
# File 'lib/httparty/response.rb', line 33 def initialize(response, parsed_response) @response = response @body = response.body @parsed_response = parsed_response @headers = Headers.new(response.to_hash) end |