Method: Anego::Response#initialize
- Defined in:
- lib/anego/response.rb
#initialize(response) ⇒ Response
Returns a new instance of Response.
3 4 5 6 7 |
# File 'lib/anego/response.rb', line 3 def initialize(response) @raw_body = Hashie::Mash.new JSON.parse(response.to_s) @raw_headers = Hashie::Mash.new(response.headers) @raw_status = response.code end |