Sha256: 7995a796eed788fee0961f77a4e9bc92c2ec070f02a1b4c04152440d0aea6ac2
Contents?: true
Size: 372 Bytes
Versions: 1
Compression:
Stored size: 372 Bytes
Contents
# frozen_string_literal: true module Couchy module Resources module Document def get_document(id) exec(:get, "#{name}/#{id}") end def save_document(id, data = {}) exec(:put, "#{name}/#{id}", data.to_json) end def delete_document(id, rev:) exec(:delete, "#{name}/#{id}?rev=#{rev}") end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
couchy-0.1.0 | lib/couchy/resources/document.rb |