Project

dxlite

0.0
Low commit activity in last 3 years
No release in over a year
Handles Dynarex documents (in JSON format) faster and with less overheads.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0.6, >= 0.6.0
 Project Readme

Introducing the dxlite gem

require 'dxlite' 

dx = DxLite.new 'http://a0.jamesrobertson.eu/health/dynarex.json'
recs = dx.records

title = "Jogging slowly  #jogging #easy"
r = dx.find_all_by_title title
r2 = dx.find_by_title title
dx.create(url: 'about:blank', title: 'ABC hello!')
dx.save '/tmp/health.json'

The above example loads a Dynarex document in JSON format. DxLite can do the following:

  • read an existing Dynarex document in JSON format
  • find multiple records by field value
  • find a single record by field value
  • create a new record
  • save the document in JSON format
  • return all records using methods :record or :all

Resources

dxlite gem dynarex lite