Sha256: 4e1e7626ad7522cb8bcf0574233347a0b4c5f568f568fac05ea59f10701e6afb

Contents?: true

Size: 309 Bytes

Versions: 1

Compression:

Stored size: 309 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)
    @client.delete("/v2/keys/#{key}").body[:action] == "delete"
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kek-1.0.0 lib/kek/keys.rb