class

CRE::Tui::State

Inherits Reference < Object

State holds the rolling view of recent events for the TUI to render. Updated synchronously from the event subscriber; rendering reads it.

Constants

MAX_ACTIVE_ROTATIONS = 10
MAX_RECENT_EVENTS = 20

Constructors

new(kek_version : Int32 = 0)
Source

Instance methods

active
Source
apply(ev : Events::Event) : Nil
Source
completed_24h
Source
creds_total
Source
due_now
Source
kek_version
Source
overdue
Source
recent
Source
started_at
Source
update_counts(creds_total : Int32, due_now : Int32, overdue : Int32) : Nil
Source
uptime
Source

Nested types