class

PlaceOS::Model::Group::ChangeFeed(T)

Inherits Iterator < Enumerable < Reference < Object

A node in the group tree for an authority. The tree represents the organisational hierarchy. Each group declares which subsystems (signage, events, parking, ...) it participates in via the subsystems text array; subsystem-scoped permission queries are filtered against that array. A single root per authority is enforced by a partial unique index on (authority_id) WHERE parent_id IS NULL.

Constructors

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

Instance methods

next

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

on

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

stop

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

Nested types