Method: Hactor::HTTP::Response#initialize

Defined in:
lib/hactor/http/response.rb

#initialize(response, options = {}) ⇒ Response

Returns a new instance of Response.



19
20
21
22
23
24
# File 'lib/hactor/http/response.rb', line 19

def initialize(response, options={})
  @http_client = options.fetch(:http_client)
  @codec = options.fetch(:codec) { Hactor::HAL::Document }
  @body = options[:body]
  @response = response
end