struct Goban::MQR::Version
- Goban::MQR::Version
- Goban::AbstractQR::Version
- Struct
- Value
- Object
Overview
Represents a version number of the Micro QR Code symbol. Possible versions range from 1 to 4, and the higher the number, the large the size of the final Micro QR Code symbol.
Defined in:
goban/mqr/version.crConstant Summary
-
MAX =
4_u8
-
MIN =
1_u8
-
SYMBOL_NUMS =
{NamedTuple.new, {Low: 0, Medium: 0, Quartile: 0}, {Low: 1, Medium: 2, Quartile: -1}, {Low: 3, Medium: 4, Quartile: -1}, {Low: 5, Medium: 6, Quartile: 7}}
Constructors
Instance Method Summary
-
#max_data_bits(ecl : ECC::Level)
Maximum number of data bits that can be contained in the Micro QR Code symbol of this version.
-
#max_data_codewords(ecl : ECC::Level)
Maximum number of data codewords that can be contained in the Micro QR Code symbol of this version.
Instance methods inherited from struct Goban::AbstractQR::Version
<=>(other : Int)
<=>,
symbol_size
symbol_size,
to_i
to_i,
value
value
Constructor Detail
Instance Method Detail
def max_data_bits(ecl : ECC::Level)
#
Maximum number of data bits that can be contained in the Micro QR Code symbol of this version. This does not include the number of error correction codewords.
def max_data_codewords(ecl : ECC::Level)
#
Maximum number of data codewords that can be contained in the Micro QR Code symbol of this version. This does not include the number of error correction codewords.