class

Stringventory::Actions::Database::DataScheme

Inherits YAML::Serializable < Reference < Object

Class used to allow serialization of data to and from yaml.

Constructors

new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
Source
new

Get all of the data in the database as arrays.

Source
new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Source

Instance methods

guitars
Source
guitars=(guitars : Array(Stringventory::Models::Guitar))
Source
save_all

Save all of the data in the class into the database. This is typically called with a yaml file to save the values in it into the database

Source
string_changes
Source
string_changes=(string_changes : Array(Stringventory::Models::StringChange))
Source
strings
Source
strings=(strings : Array(Stringventory::Models::Strings))
Source