Method: CouchDocs::Store.post

Defined in:
lib/couch_docs/store.rb

.post(path, doc) ⇒ Object



49
50
51
52
53
# File 'lib/couch_docs/store.rb', line 49

def self.post(path, doc)
  RestClient.post path,
    doc.to_json,
    :content_type => 'application/json'
end