struct

Goban::MQR::Version

Inherits Goban::AbstractQR::Version / Comparable / Struct / Value / Object

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.

Constants

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

new(value : Int)
Source

Instance methods

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.

Source
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.

Source