Categorizes confidence levels for Minimum Required Crystal Version discovery results.
Constructors
from_score(score :
Int32) :
Tier Returns the corresponding Tier for a given 0-100 reliability score.
SourceClass methods
parse?(str :
String) :
Tier |
Nil Parses a string representation into a Tier case-insensitively.
SourceInstance methods
bronze?
Returns true if this tier is Bronze (40-69 pts).
Sourcedescription
Returns a detailed human-readable explanation of this confidence tier.
Sourcegold?
Returns true if this tier is Gold (90-100 pts).
Sourcelow?
Returns true if this tier is Low (< 40 pts).
Sourcesilver?
Returns true if this tier is Silver (70-89 pts).
SourceSerializes the tier name to JSON as an uppercase string.
SourceFormats the tier name as an uppercase string to IO.
Sourceto_s
Returns the tier name as an uppercase string.
Source