Torrent state string (TorrentInfo#state), qBittorrent 5.x values.
5.x renamed the paused states: pausedUP/pausedDL became
stoppedUP/stoppedDL. This enum's canonical wire form is the 5.x
stopped* spelling, but #from_api? also accepts the legacy 4.x
paused* tokens as aliases so older/mixed builds still decode.
Constructors
Strict decode: raises on an unrecognised API string.
SourceClass methods
from_api?(value :
String) : self |
Nil Parses an API string to a member, or nil if unrecognised. Accepts the
legacy 4.x pausedUP/pausedDL tokens as aliases for the 5.x
stoppedUP/stoppedDL members.
ameba:disable Metrics/CyclomaticComplexity
SourceInstance methods
allocating?
Returns true if this enum value equals Allocating
Sourcechecking_dl?
Returns true if this enum value equals CheckingDL
Sourcechecking_resume_data?
Returns true if this enum value equals CheckingResumeData
Sourcechecking_up?
Returns true if this enum value equals CheckingUP
Sourcedownloading?
Returns true if this enum value equals Downloading
Sourceerror?
Returns true if this enum value equals Error
Sourceforced_dl?
Returns true if this enum value equals ForcedDL
Sourceforced_up?
Returns true if this enum value equals ForcedUP
Sourcemissing_files?
Returns true if this enum value equals MissingFiles
Sourcemoving?
Returns true if this enum value equals Moving
Sourcequeued_dl?
Returns true if this enum value equals QueuedDL
Sourcequeued_up?
Returns true if this enum value equals QueuedUP
Sourcestalled_dl?
Returns true if this enum value equals StalledDL
Sourcestalled_up?
Returns true if this enum value equals StalledUP
Sourcestopped_dl?
Returns true if this enum value equals StoppedDL
Sourcestopped_up?
Returns true if this enum value equals StoppedUP
Sourceto_api
Exact API string for this state (5.x spelling).
SourceSerializes to the exact API string (e.g. "stalledUP").
Sourceunknown?
Returns true if this enum value equals Unknown
Sourceuploading?
Returns true if this enum value equals Uploading
Source