Class: Barcode::FormatHandlers::Cgap
- Inherits:
-
BaseRegExBarcode
- Object
- BaseRegExBarcode
- Barcode::FormatHandlers::Cgap
- Defined in:
- app/models/barcode/format_handlers.rb
Overview
CGAP barcodes are externally generated foreign barcodes.
Instance Attribute Summary
Attributes inherited from BaseRegExBarcode
Instance Method Summary collapse
Methods inherited from BaseRegExBarcode
#=~, #barcode_prefix, #child, #code128_barcode, #code128_barcode?, #code39_barcode, #code39_barcode?, #initialize, #suffix, #valid?
Methods included from Ean13Incompatible
#ean13_barcode, #ean13_barcode?
Constructor Details
This class inherits a constructor from Barcode::FormatHandlers::BaseRegExBarcode
Instance Method Details
#number ⇒ Object
201 202 203 204 |
# File 'app/models/barcode/format_handlers.rb', line 201 def number # number is a hexadecimal string here @matches[:number] if @matches&.names&.include?('number') end |