lib/mongohq-client/http.rb in mongohq-client-0.0.2 vs lib/mongohq-client/http.rb in mongohq-client-0.0.3

- old
+ new

@@ -1,14 +1,11 @@ module MongoHQClient module HTTP def get(uri) - puts uri raise "Invalid apikey" unless apikey resp = HTTParty.get("#{base_uri}/#{uri}", query: { :_apikey => apikey } ) - - puts resp.body #TODO error handling JSON.parse(resp.body) end