abstract struct Quartz::State

Overview

A base struct that wraps the state of a model. Automatically extended by models through use of the state_var macro.

Included Modules

Direct Known Subclasses

Defined in:

quartz/msgpack.cr
quartz/state.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from struct Value

==(other : Quartz::Any) ==

Instance methods inherited from class Object

===(other : Quartz::Any) ===

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(pull : MessagePack::PullParser) #

[View source]
def self.new #

[View source]

Class Method Detail

def self.from_json(io : IO) #

[View source]
def self.from_json(str : String) #

[View source]
def self.from_msgpack(io : IO) #

[View source]
def self.from_msgpack(bytes : Bytes) #

[View source]

Instance Method Detail

def to_json(json : JSON::Builder) #

[View source]
def to_msgpack(packer : MessagePack::Packer) #

[View source]
def to_named_tuple #

[View source]
def to_tuple #

[View source]