class

PlaceOS::Model::History::ChangeFeed(T)

Inherits Iterator < Enumerable < Reference < Object

Unified change history for models that include History::Tracked.

Entries are written in the same transaction as the change they describe. Filter by resource_type (the table name) and resource_id, or by correlation_id to see changes recorded against a parent, e.g. every permission change of a group.

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