enum

Mrcv::Reliability::Tier

Inherits Enum < Comparable < Value < Object

Categorizes confidence levels for Minimum Required Crystal Version discovery results.

Constants

Gold = 0
Silver = 1
Bronze = 2
Low = 3

Constructors

from_score(score : Int32) : Tier

Returns the corresponding Tier for a given 0-100 reliability score.

Source

Class methods

parse?(str : String) : Tier | Nil

Parses a string representation into a Tier case-insensitively.

Source

Instance methods

bronze?

Returns true if this tier is Bronze (40-69 pts).

Source
description

Returns a detailed human-readable explanation of this confidence tier.

Source
gold?

Returns true if this tier is Gold (90-100 pts).

Source
low?

Returns true if this tier is Low (< 40 pts).

Source
silver?

Returns true if this tier is Silver (70-89 pts).

Source
to_json(json : JSON::Builder) : Nil

Serializes the tier name to JSON as an uppercase string.

Source
to_s(io : IO) : Nil

Formats the tier name as an uppercase string to IO.

Source
to_s

Returns the tier name as an uppercase string.

Source