data Rotor::Checkpoint(attrs: Hash[Symbol, Int | Float | String | Bool | Time | Bytes | Nil], changed: Array[Symbol], loaded: Array[Symbol]?, assocs: Hash[Symbol, Array[Rotor::Model]])
A model's values, the columns assigned since it was loaded, the
columns a query fetched (nil: all), and the associations preloaded
(by name: the associated models, none or one for a belongs_to): what
a model is made of (Rotor::Model#checkpoint, Rotor::Model#restore).
/home/runner/work/rotor/rotor/src/model.qz:5
Methods
def to_h -> Hash[Symbol, Object]
The fields as a Hash, by name.
def with(*, attrs: Hash[Symbol, Int | Float | String | Bool | Time | Bytes | Nil] = …, changed: Array[Symbol] = …, loaded: Array[Symbol]? = …, assocs: Hash[Symbol, Array[Rotor::Model]] = …) -> Rotor::Checkpoint
A copy with the fields given replaced.