enum

Goban::ECC::Level

Inherits Enum / Comparable / Value / Object

Error correction level of the QR Code. QR Code symbols include redundant bits based on the selected error correction level, so that even if some part the symbol is not readable, the decoder can recover the loss for up to:

  • 7% for Low
  • 15% for Medium
  • 25% for Quartile
  • 30% for High

Note that choosing a higher error correction level requires more redundant bits, meaning that the resulting QR Code symbol can get larger.

Constants

Low = 1_u8
Medium = 0_u8
Quartile = 3_u8
High = 2_u8

Instance methods

high?

Returns true if this enum value equals High

Source
low?

Returns true if this enum value equals Low

Source
medium?

Returns true if this enum value equals Medium

Source
quartile?

Returns true if this enum value equals Quartile

Source