class

Stringventory::Models::Strings

Inherits YAML::Serializable < JSON::Serializable < Granite::Base < Granite::Select < Granite::Migrator < Granite::ValidationHelpers < Granite::Validators < Granite::Transactions < Granite::Tables < Granite::Columns < Granite::Callbacks < Granite::Associations < Reference < Object

Class representing a set of strings.

Constructors

new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
new(pull : JSON::PullParser)
new(*, __pull_for_json_serializable pull : JSON::PullParser)
new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)

Class methods

adapter

Instance methods

id

Primary key for the table. Not used otherwise.

Source
id!

Primary key for the table. Not used otherwise.

Source
id=(id : Int64 | Nil)

Primary key for the table. Not used otherwise.

Source
name

Name of the string pack. Must be unique.

Source
name=(name : String)

Name of the string pack. Must be unique.

Source
num_packs

Number of packs currently in stock.

Source
num_packs=(num_packs : Int32)

Number of packs currently in stock.

Source
num_strings

Number of strings per pack.

Source
num_strings=(num_strings : Int32)

Number of strings per pack.

Source
string_changes

Instances where the strings have been used in a string change.

Source
to_s

Method to provide a reasonable string representation for the string pack.

Source