Class: Coinbase::Exchange::EMHTTPResponse
Overview
Instance Attribute Summary
Attributes inherited from APIResponse
#received_at
Instance Method Summary
collapse
Methods inherited from APIResponse
#initialize, #raw
Instance Method Details
#body ⇒ Object
67
68
69
|
# File 'lib/coinbase/exchange/adapters/em_http.rb', line 67
def body
@response.response
end
|
71
72
73
74
75
76
|
# File 'lib/coinbase/exchange/adapters/em_http.rb', line 71
def
out = @response..map do |key, val|
[ key.upcase.gsub('_', '-'), val ]
end
out.to_h
end
|
#status ⇒ Object
78
79
80
|
# File 'lib/coinbase/exchange/adapters/em_http.rb', line 78
def status
@response..status
end
|