class PlaceOS::Model::SignageTemplate::SystemTemplate::ChangeFeed(T)

Overview

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.

Included Modules

Defined in:

Constructors

Instance Method Summary

Constructor Detail

def self.new(id : UUID | Nil = nil, parent : T.class = T.class) #

Instance Method Detail

def next #

Returns the next element in this iterator, or Iterator::Stop::INSTANCE if there are no more elements.


def on(&block : Change(T) -> Nil) #

Method expects a block which will get invoked with Change(T) parameter on change events received from EventBus


def stop #

Shortcut for Iterator::Stop::INSTANCE, to signal that there are no more elements in an iterator.