class

PlaceOS::Model::SignageTemplate::SystemTemplate

Inherits PgORM::Timestamps < PgORM::Base < PgORM::Validators < PgORM::Table < PgORM::Persistence < PgORM::Associations < ActiveModel::Callbacks < ActiveModel::Validation < ActiveModel::Model < DB::Mappable < DB::Serializable < YAML::Serializable < JSON::Serializable < Reference < Object

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

Constants

CALLBACKS = { before_save: [do if (__temp_1314 = @control_system) && __temp_1314.new_record? __temp_1314.save self.control_system_id = __temp_1314.id.not_nil! end end, do if (__temp_1315 = @zone) && __temp_1315.new_record? __temp_1315.save self.zone_id = __temp_1315.id.not_nil! end end, do if (__temp_1317 = @template) && __temp_1317.new_record? __temp_1317.save self.template_id = __temp_1317.id.not_nil! end end] of Nil, after_save: [] of Nil, before_create: [do self.created_at = self.updated_at = Time.utc end] of Nil, after_create: [] of Nil, before_update: [do self.updated_at = Time.utc end] of Nil, after_update: [] of Nil, before_destroy: [] of Nil, after_destroy: [do end, do end, do end] of Nil, }

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

PRIMARY_KEY_TYPES = {:id => UUID} of Nil => Nil

macro level key => type

PRIMARY_KEYS = [{:id}]

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

Constructors

from_json(string_or_io : String | IO, trusted : Bool = false) : self

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

from_json(string_or_io : String | IO, root : String, trusted : Bool = false) : self

Deserializes the given JSON in string_or_io into an instance of self, assuming the JSON consists of an JSON object with key root, and whose value is the value to deserialize. Will not deserialise from fields with mass_assign: false

class User < ActiveModel::Model
  attribute name : String
  attribute google_id : UUID, mass_assign: false
end

User.from_json(%({"main": {"name": "Jason", "google_id": "f6f70bfb-c882-446d-8758-7ce47db39620"}}), root: "main") # => #<User:0x103131b20 @name="Jason">
from_trusted_json(string_or_io : String | IO, root : String) : self

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

from_trusted_json(string_or_io : String | IO) : self

Serialize from a trusted JSON source

from_trusted_yaml(string_or_io : String | IO) : self

Serialize from a trusted YAML source

from_yaml(string_or_io : String | IO, trusted : Bool = false) : self

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

Source
new(pull : JSON::PullParser)

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

Source
new(rs : DB::ResultSet)

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

new(created_at : Time | ActiveModel::Model::None = ::ActiveModel::Model::None.new, updated_at : Time | ActiveModel::Model::None = ::ActiveModel::Model::None.new, id : UUID | ActiveModel::Model::None = ::ActiveModel::Model::None.new, control_system_id : String | Nil | ActiveModel::Model::None = ::ActiveModel::Model::None.new, zone_id : String | Nil | ActiveModel::Model::None = ::ActiveModel::Model::None.new, template_id : UUID | ActiveModel::Model::None = ::ActiveModel::Model::None.new, schedule : PlaceOS::Model::Playlist::Schedule | Nil | ActiveModel::Model::None = ::ActiveModel::Model::None.new)

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

Initialize PlaceOS::Model::SignageTemplate::SystemTemplate from HTTP::Params.

Class methods

attributes

Returns all attribute keys.

by_control_system_id(id)
Source
by_template_id(id)
Source
by_zone_id(id)
Source
changes(id : UUID | Nil = nil) : ChangeFeed

Changefeed at row (if id passed) or whole table level. Returns a ChangeFeed instance which can be used to invoke async callbacks via on or use blocking Iterator via each method.

from_rs(__temp_2426 : DB::ResultSet)

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

on_error(err : Exception | IO::Error)

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

primary_key

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

Source
table_name

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

Instance methods

after_create

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

after_destroy

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

after_initialize(trusted : Bool)

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

after_save

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

after_update

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

apply_defaults

Generate code to apply default values

assign_attributes(created_at : Time | Missing = Missing, updated_at : Time | Missing = Missing, id : UUID | Missing = Missing, control_system_id : String | Nil | Missing = Missing, zone_id : String | Nil | Missing = Missing, template_id : UUID | Missing = Missing, schedule : PlaceOS::Model::Playlist::Schedule | Nil | Missing = Missing)

Assign to multiple attributes.

assign_attributes(params : HTTP::Params | Hash(String, String) | Tuple(String, String))

Assign to multiple attributes via HTTP::Params.

Assign to multiple attributes from a model object

assign_attributes_from_json(json, root : String)

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

assign_attributes_from_json(json)

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

assign_attributes_from_trusted_json(json, root : String)

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

assign_attributes_from_trusted_json(json)

Assign each field from JSON if field exists in JSON and has changed in model

assign_attributes_from_trusted_yaml(yaml)

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

assign_attributes_from_yaml(yaml)

Uses the YAML parser as JSON is valid YAML

attributes

Returns a Hash of all attribute values

attributes_tuple

Returns a NamedTuple of all attribute values.

before_create

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

before_destroy

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

before_save

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

before_update

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

build_control_system
Source
build_template
Source
build_zone
Source
changed?

Check if any attributes have changed.

changed_attributes

Returns a Hash with all changed attributes.

changed_json(io : IO) : Nil

Serialize the set of changed attributes to JSON.

changed_json

Serialize the set of changed attributes to JSON.

changed_persist_attributes

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

changed_yaml(io : IO) : Nil

Serialize the set of changed attributes to YAML.

changed_yaml

Serialize the set of changed attributes to YAML.

clear_changes_information

Reset changes for all attributes.

control_system
Source
control_system!
Source
control_system?
Source
control_system_id

control_system_id getter

control_system_id=(value : String | Nil)

control_system_id setter

control_system_id_assigned?

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

control_system_id_change

Returns a Tuple of the previous and the current value of an instance variable if it has changed

control_system_id_changed?

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

control_system_id_default

control_system_id's default value

Source
control_system_id_present?
control_system_id_removed?

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

control_system_id_was

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

control_system_id_will_change!

Include control_system_id in the set of changed attributes, whether it has changed or not.

create_control_system
Source
create_control_system!
Source
create_template
Source
create_template!
Source
create_zone
Source
create_zone!
Source
created_at

created_at getter

created_at=(value : Time)

Setters created_at setter

created_at?

NOTE: use getter / getter! (not property / property!) so that the setter defined later in __create_initializer__ is the only setter on the field. Crystal's overload resolution silently fails to replace a property-defined setter with one of identical signature for generic types (e.g. Set(String)?, Array(String)?, String | Array(String)), although it does work for non-generic ones like String?. Defining the setter only once via __create_initializer__ ensures change tracking, sanitization, and custom setter blocks run uniformly across all types.

created_at_assigned?

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

created_at_change

Returns a Tuple of the previous and the current value of an instance variable if it has changed

created_at_changed?

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

created_at_default

created_at's default value

created_at_present?
created_at_removed?

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

created_at_was

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

created_at_will_change!

Include created_at in the set of changed attributes, whether it has changed or not.

default?
Source
id

id getter

id=(value : UUID)

id setter

id?

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

id_assigned?

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

id_change

Returns a Tuple of the previous and the current value of an instance variable if it has changed

id_changed?

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

id_default

id's default value

id_present?
id_removed?

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

id_was

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

id_will_change!

Include id in the set of changed attributes, whether it has changed or not.

invoke_props

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

persistent_attributes

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

primary_key

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

Source
primary_key_hash

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

reload_control_system
Source
reload_control_system?
Source
reload_template
Source
reload_template?
Source
reload_zone
Source
reload_zone?
Source
restore_attributes

Reset each attribute to their previous values and clears all changes.

schedule

schedule getter

schedule=(value : PlaceOS::Model::Playlist::Schedule | Nil)

schedule setter

schedule_assigned?

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

schedule_change

Returns a Tuple of the previous and the current value of an instance variable if it has changed

schedule_changed?

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

schedule_default

schedule's default value

Source
schedule_present?

when the template applies; nil means this is the default template

schedule_removed?

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

schedule_was

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

schedule_will_change!

Include schedule in the set of changed attributes, whether it has changed or not.

table_name

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

template
Source
template!
Source
template?
Source
template_id

template_id getter

template_id=(value : UUID)

template_id setter

template_id?

NOTE: use getter / getter! (not property / property!) so that the setter defined later in __create_initializer__ is the only setter on the field. Crystal's overload resolution silently fails to replace a property-defined setter with one of identical signature for generic types (e.g. Set(String)?, Array(String)?, String | Array(String)), although it does work for non-generic ones like String?. Defining the setter only once via __create_initializer__ ensures change tracking, sanitization, and custom setter blocks run uniformly across all types.

template_id_assigned?

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

template_id_change

Returns a Tuple of the previous and the current value of an instance variable if it has changed

template_id_changed?

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

template_id_default

template_id's default value

Source
template_id_present?
template_id_removed?

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

template_id_was

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

template_id_will_change!

Include template_id in the set of changed attributes, whether it has changed or not.

updated_at

updated_at getter

updated_at=(value : Time)

updated_at setter

updated_at?

NOTE: use getter / getter! (not property / property!) so that the setter defined later in __create_initializer__ is the only setter on the field. Crystal's overload resolution silently fails to replace a property-defined setter with one of identical signature for generic types (e.g. Set(String)?, Array(String)?, String | Array(String)), although it does work for non-generic ones like String?. Defining the setter only once via __create_initializer__ ensures change tracking, sanitization, and custom setter blocks run uniformly across all types.

updated_at_assigned?

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

updated_at_change

Returns a Tuple of the previous and the current value of an instance variable if it has changed

updated_at_changed?

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

updated_at_default

updated_at's default value

updated_at_present?
updated_at_removed?

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

updated_at_was

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

updated_at_will_change!

Include updated_at in the set of changed attributes, whether it has changed or not.

validate_nilability

Validate that all non-nillable fields have values.

zone
Source
zone!
Source
zone?
Source
zone_id

zone_id getter

zone_id=(value : String | Nil)

zone_id setter

zone_id_assigned?

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

zone_id_change

Returns a Tuple of the previous and the current value of an instance variable if it has changed

zone_id_changed?

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

zone_id_default

zone_id's default value

Source
zone_id_present?
zone_id_removed?

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

zone_id_was

junction attaching a SignageTemplate to a ControlSystem or a Zone (exactly one of the two). A row with a schedule shows the template during that schedule; a row without one is the default template for the pairing (at most one, enforced by a partial unique index). Surrogate UUID pk as the same template may be attached to the same system or zone multiple times with different schedules.

zone_id_will_change!

Include zone_id in the set of changed attributes, whether it has changed or not.

Nested types