Ohm::Model
Inherits Reference < Object
Constants
LUA = {
save: {
src: with_file("ohm/save.lua", "cat"),
sha: ((with_file("ohm/save.lua", "shasum")).split(' ')).first,
},
delete: {
src: with_file("ohm/delete.lua", "cat"),
sha: ((with_file("ohm/delete.lua", "shasum")).split(' ')).first,
},
}
Constructors
new(atts : Hash(String, String))
Sourcenew
SourceClass methods
[](id : String)
Source[](id : Int)
Source[](id : Nil)
Sourceall
Sourceas_index(name : String, value : String)
Sourceas_index(name : String, values : Array(String))
Sourceas_indices(filter : Hash(String, String | Array(String)))
Sourceattributes
Sourcecreate(atts)
Sourcecreate
Sourcefetch(ids : Array(Resp::Reply))
Sourcefind(filter : Hash(String, String | Array(String)))
Sourceincludes?(id : String)
Sourceincludes?(id : Int)
Sourceindices
Sourcekey
Sourceredis
Sourcetracked
Sourceuniques
Sourcewith(name, value)
SourceInstance methods
attributes
Sourcecounters
Sourcedelete
Sourceid
Sourcekey
Sourcemerge(atts : Array(Resp::Reply))
Sourcemerge(atts : Hash(String, String))
Sourcemodel
Sourceredis
Sourceretrieve!
Sourcesave
Sourceupdate(atts : Hash(String, String))
SourceMacros
attribute(name)
Sourcecollection(name, model, reference)
Sourcecounter(name)
Sourceindex(name)
Sourcelist(name, model)
Sourcemutable(name, model, type)
Sourcereference(name, model)
Sourceset(name, model)
Sourcetrack(name)
Sourceunique(name)
Sourcewith_file(filename, command)
Source