Class: Gtiny::GTIN8
Overview
GTIN-8: Used for EAN-8 barcodes.
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from GTIN
#check_digit, #company_prefix_and_item_reference, #valid?
Methods inherited from Encoding
#initialize, matches?, normalize, #to_s, #valid?, #zeroes?
Constructor Details
This class inherits a constructor from Gtiny::Encoding
Class Method Details
.regex ⇒ Object
8 9 10 |
# File 'lib/gtiny/gtin8.rb', line 8 def self.regex /\A[0-9]{8}\z/ end |
Instance Method Details
#type ⇒ Object
12 13 14 |
# File 'lib/gtiny/gtin8.rb', line 12 def type "GTIN-8" end |