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, ={}) @http_client = .fetch(:http_client) @codec = .fetch(:codec) { Hactor::HAL::Document } @body = [:body] @response = response end |