class

PlaceOS::Model::PendingMail::ChangeFeed(T)

Inherits Iterator < Enumerable < Reference < Object

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

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