enum

ArrTop::State

Inherits Enum < Comparable < Value < Object

arrtop's own normalized queue state, ordered so "what's importing" rises to the top of the view. The enum value is the sort rank — lower sorts first (Importing = 0 … Unknown = 5).

Constants

Importing = 0
ImportPending = 1
Downloading = 2
Failed = 3
Queued = 4
Unknown = 5

Constructors

from_tracked_state(str : String | Nil) : State

Maps a shard trackedDownloadState string onto a normalized State. Matching is case-insensitive; unknown or nil values become Unknown.

The shard enum values are: downloading, importBlocked, importPending, importing, imported, failedPending, failed, ignored (queued is accepted too, though it is reported via the queue status field rather than trackedDownloadState).

Source

Instance methods

downloading?

Returns true if this enum value equals Downloading

Source
failed?

Returns true if this enum value equals Failed

Source
import_pending?

Returns true if this enum value equals ImportPending

Source
importing?

Returns true if this enum value equals Importing

Source
queued?

Returns true if this enum value equals Queued

Source
rank

Sort rank; lower rises to the top. Equal to the enum value.

Source
unknown?

Returns true if this enum value equals Unknown

Source