struct

Feed::Window

Inherits Struct < Value < Object

The preview window.

A window is the bounded set of a feed's verdicts produced by previewing a draft. Once a draft's criteria have verdicts they are never recomputed.

Constants

MATCH_CAP = 20
SCAN_CAP = 100

Constructors

new(feed : Feed)
Source

Instance methods

contents(max_id : Int64 | Nil = nil, min_id : Int64 | Nil = nil, limit : Int32 = MATCH_CAP)

The window's contents.

Source
recompute

Materializes the window.

It is a no-op if the feed already has verdicts.

Source