Class: Barcode::FormatHandlers::Cgap

Inherits:
BaseRegExBarcode show all
Defined in:
app/models/barcode/format_handlers.rb

Overview

CGAP barcodes are externally generated foreign barcodes.

Instance Attribute Summary

Attributes inherited from BaseRegExBarcode

#human_barcode

Instance Method Summary collapse

Methods inherited from BaseRegExBarcode

#=~, #barcode_prefix, #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

#numberObject


181
182
183
184
# File 'app/models/barcode/format_handlers.rb', line 181

def number
  # number is a hexadecimal string here
  @matches[:number] if @matches&.names&.include?('number')
end