struct

Goban::QR::Version

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

Represents a version number of the QR Code symbol. Possible versions range from 1 to 40, and the higher the number, the large the size of the final QR Code symbol.

Constants

MAX = 40_u8
MIN = 1_u8
VERSION_BITS = {-1, -1, -1, -1, -1, -1, -1, 31892, 34236, 39577, 42195, 48118, 51042, 55367, 58893, 63784, 68472, 70749, 76311, 79154, 84390, 87683, 92361, 96236, 102084, 102881, 110507, 110734, 117786, 119615, 126325, 127568, 133589, 136944, 141498, 145311, 150283, 152622, 158308, 161089, 167017}

Constructors

new(value)
Source

Instance methods

max_data_bits(ecl : ECC::Level)

Maximum number of data bits that can be contained in the 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 QR Code symbol of this version. This does not include the number of error correction codewords.

Source