class Anego::Response
Public Class Methods
new(response)
click to toggle source
# 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
Public Instance Methods
body()
click to toggle source
# File lib/anego/response.rb, line 9 def body @raw_body end
headers()
click to toggle source
# File lib/anego/response.rb, line 13 def headers @raw_headers end
status()
click to toggle source
# File lib/anego/response.rb, line 17 def status @raw_status end