class

Rules::View::Feed

Inherits Rules::View < Reference < Object

An algorithmic feed's view.

Unlike the singleton views, feeds are runtime-created, so instances are constructed and registered from those rows -- never here.

An object is a member when it has a verdict for the feed that is included and current.

Constructors

new(feed_id : Int64, owner_iri : String)
Source

Instance methods

feed_id
Source
membership(key : Key | Nil = nil) : Tuple(String, Array(DB::Any))

The membership query, plus its bind arguments.

The query selects rows of (from_iri, to_iri, position). A key of nil returns the full set (the batch reconcile); otherwise it returns the form scoped to a single member.

Source
owner_iri
Source
project(object_iri : String) : Array(Key)

Maps a changed base fact to the collection key(s).

Source
subjects(username : String) : Array(String)

The pub/sub subjects to notify when one of username's rows in this view changes.

It's empty by default -- the view publishes no real-time updates. Views that do mix in NotifiesNotifications or NotifiesTimeline.

Source
type

The relationship subtype this view materializes.

Source