Class: Zint::QRCode

Inherits:
Barcode show all
Defined in:
lib/zint/qrcode.rb

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

Methods inherited from Barcode

#buffer!, #encode!, #print!

Constructor Details

#initialize(value, ecc = ECC_L, *options) ⇒ 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, *options)
  super(value, Zint::BARCODE_QRCODE, options[0])
  @zint_symbol[:option_1] = ecc
  return self
end