Class: Jancode::GTIN8

Inherits:
GTIN
  • Object
show all
Defined in:
lib/jancode/gtin8.rb

Instance Attribute Summary

Attributes inherited from GTIN

#company_prefix, #item_code

Instance Method Summary collapse

Methods inherited from GTIN

#check_digit, #create, #initialize

Constructor Details

This class inherits a constructor from Jancode::GTIN

Instance Method Details

#validationObject



3
4
5
# File 'lib/jancode/gtin8.rb', line 3

def validation
  raise "Is not 7 characters Item Code and GS1 Company Prefix to suit" if code_array.size != 7
end