class PlaceOS::Model::GroupInvitation::ChangeFeed(T)

Overview

Grants a user who is not yet in the system (or external) access to a group via a shared secret. The plaintext secret is generated at creation time and returned to the caller once; only its SHA256 digest is persisted. Accepting an invitation materialises it into a GroupUser and then destroys the invitation.

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 #
Description copied from module Iterator(PlaceOS::Model::GroupInvitation::ChangeFeed::Change(T))

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 #
Description copied from module Iterator(PlaceOS::Model::GroupInvitation::ChangeFeed::Change(T))

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