Class: Jancode::GTIN13

Inherits:
GTIN
  • Object
show all
Defined in:
lib/jancode/gtin13.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/gtin13.rb', line 3

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