Sha256: 5fcda9e01c35f14a19fc363efd0c6175139882a344baa84089b5dd24acde9964
Contents?: true
Size: 326 Bytes
Versions: 1
Compression:
Stored size: 326 Bytes
Contents
class Kek def set(key, value, opts = {}) @client.put("/v2/keys/#{key}", opts.merge(value: value)).body[:action] == 'set' end def get(key) @client.get("/v2/keys/#{key}").body.dig(:node, :value) end def delete(key, opts = {}) @client.delete("/v2/keys/#{key}", opts).body[:action] == "delete" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kek-1.1.0 | lib/kek/keys.rb |