Sha256: cdf7a9264be8c9d4116599f83ebf2aedb432477b46edafbdae63894c4e469cb1
Contents?: true
Size: 325 Bytes
Versions: 1
Compression:
Stored size: 325 Bytes
Contents
module MongoHQClient module HTTP def get(uri) raise "Invalid apikey" unless apikey resp = HTTParty.get("#{base_uri}/#{uri}", query: { :_apikey => apikey } ) #TODO error handling JSON.parse(resp.body) end protected def base_uri "https://api.mongohq.com" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mongohq-client-0.0.3 | lib/mongohq-client/http.rb |