Class: Zint::QRCode
Constant Summary collapse
- ECC_L =
1
- ECC_M =
2
- ECC_Q =
3
- ECC_H =
4
Instance Attribute Summary
Attributes inherited from Barcode
#bctype, #path, #value, #zint_symbol
Instance Method Summary collapse
-
#initialize(value, ecc = ECC_L) ⇒ QRCode
constructor
A new instance of QRCode.
Methods inherited from Barcode
Constructor Details
#initialize(value, ecc = ECC_L) ⇒ QRCode
Returns a new instance of QRCode.
8 9 10 11 12 |
# File 'lib/zint/qrcode.rb', line 8 def initialize(value, ecc=ECC_L) super(value, Zint::BARCODE_QRCODE) @zint_symbol[:option_1] = ecc return self end |