class

Stringventory::Models::StringChange

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 string change.

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

guitar
Source
guitar!
Source
guitar=(parent : Guitar)
Source
guitar_id
guitar_id!
guitar_id=(guitar_id : Int64 | Nil)
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
message

Optional message regarding a string change (maybe something dealing with pickups or setups, something like that).

Source
message!

Optional message regarding a string change (maybe something dealing with pickups or setups, something like that).

Source
message=(message : String | Nil)

Optional message regarding a string change (maybe something dealing with pickups or setups, something like that).

Source
occurred_on

When the string change occured. Defaults to the current time.

Source
occurred_on=(occurred_on : Time)

When the string change occured. Defaults to the current time.

Source
strings
Source
strings!
Source
strings=(parent : Strings)
Source
strings_id
strings_id!
strings_id=(strings_id : Int64 | Nil)
to_s

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.

Source
tuning

Tuning that the guitar is strung to. Defaults to Standard, whatever that may mean for the guitar.

Source
tuning=(tuning : String)

Tuning that the guitar is strung to. Defaults to Standard, whatever that may mean for the guitar.

Source