core.document.lua

-- Require the class.
local document = require "luchia.core.document"
-- Build a new document object.
local doc = document:new({
  id = "document-id",
  document = {
    hello = "world",
  },
})
-- Add an attachment.
local response = doc:add_attachment(previously_created_attachment_object)
generated by LDoc 1.4.3 Last updated 2016-01-14 11:22:48