lib/coinsetter/net.rb in coinsetter-0.0.7 vs lib/coinsetter/net.rb in coinsetter-0.0.8

- old
+ new

@@ -47,10 +47,10 @@ def self.body(res) if res.status == 200 res.body else - JSON.generate({status: res.status, message: res.body}) + JSON.generate({response: "error", status: res.status, message: res.body}) end end def self.connection @@connection ||= Faraday.new(url: uri) do |faraday|