Class: Zint::Qr
Overview
QR Code
Constant Summary collapse
- ECC_LEVEL_L =
ECC Levels
1
- ECC_LEVEL_M =
2
- ECC_LEVEL_Q =
3
- ECC_LEVEL_H =
4
Instance Attribute Summary collapse
-
#ecc_level ⇒ Object
readonly
Current ECC level of QR code.
Attributes inherited from Barcode
Instance Method Summary collapse
-
#initialize(value: nil, input_file: nil, ecc_level: ECC_LEVEL_L, **kwargs) ⇒ Qr
constructor
A new instance of Qr.
Methods inherited from Barcode
#bgcolour, #bgcolour=, #bitmap_byte_length, #bitmap_height, #bitmap_width, #border_width, #border_width=, #debug, #debug=, #dot_size, #dot_size=, #dpmm, #dpmm=, #eci, #eci=, #encode, #encoded_data_as_array_of_strings, #encoded_data_raw_ffi, #errtxt, #fgcolour, #fgcolour=, #fontsize, #fontsize=, #free, #guard_descent, #guard_descent=, #height, #height=, #input_mode, #input_mode=, #option_1, #option_1=, #option_2, #option_2=, #option_3, #option_3=, #outfile, #output_options, #output_options=, #primary, #primary=, #row_height_raw_ffi, #row_heights, #rows, #scale, #scale=, #show_hrt, #show_hrt=, #structapp, #structapp=, #symbology, #symbology=, #text, #to_bitmap, #to_buffer, #to_file, #to_memory_file, #to_vector, #warn_level, #warn_level=, #whitespace_height, #whitespace_height=, #whitespace_width, #whitespace_width=, #width
Constructor Details
#initialize(value: nil, input_file: nil, ecc_level: ECC_LEVEL_L, **kwargs) ⇒ Qr
Returns a new instance of Qr.
13 14 15 16 |
# File 'lib/zint/qr.rb', line 13 def initialize(value: nil, input_file: nil, ecc_level: ECC_LEVEL_L, **kwargs) super(value: value, input_file: input_file, symbology: Zint::BARCODE_QRCODE, **kwargs.merge(option_1: ecc_level)) @ecc_level = ecc_level end |
Instance Attribute Details
#ecc_level ⇒ Object (readonly)
Current ECC level of QR code
11 12 13 |
# File 'lib/zint/qr.rb', line 11 def ecc_level @ecc_level end |