Sha256: f19041a2f870c4f516c89f1a216c938c35d8d65c84ad06c88381d4ecf2ef301f
Contents?: true
Size: 267 Bytes
Versions: 1
Compression:
Stored size: 267 Bytes
Contents
require 'httparty' module MShard class MShard include HTTParty base_uri ENV['MSHARD_URI'] def get(id) self.class.get("/v2/shards/#{id}").body end def set(params) self.class.post('/v2/shards', body: params)['id'] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mshard-0.1.0 | lib/mshard/mshard.rb |