class Cwallet::Wallet::EMHTTPResponse
EM-Http response object
Public Instance Methods
body()
click to toggle source
# File lib/cwallet/wallet/adapters/em_http.rb, line 54 def body JSON.parse(@response.response) end
body=(body)
click to toggle source
# File lib/cwallet/wallet/adapters/em_http.rb, line 62 def body=(body) @response.response = body.to_json end
data()
click to toggle source
# File lib/cwallet/wallet/adapters/em_http.rb, line 58 def data body['data'] end
headers()
click to toggle source
# File lib/cwallet/wallet/adapters/em_http.rb, line 66 def headers out = @response.response_header.map do |key, val| [ key.upcase.gsub('_', '-'), val ] end out.to_h end
status()
click to toggle source
# File lib/cwallet/wallet/adapters/em_http.rb, line 73 def status @response.response_header.status end