Class: BrDocuments::IE::Pattern2

Inherits:
Base
  • Object
show all
Includes:
Commons::Mod11
Defined in:
lib/br_documents/ie/pattern2.rb

Direct Known Subclasses

AC, DF, BrDocuments::IE::PE::PE9, PR

Instance Method Summary collapse

Methods included from Commons::Mod11

#generate_digital_check, #reduce_weights

Methods inherited from Base

#formatted, #valid?

Constructor Details

#initialize(number) ⇒ Pattern2

Returns a new instance of Pattern2.



9
10
11
12
13
# File 'lib/br_documents/ie/pattern2.rb', line 9

def initialize(number)
  super
  @weight1 = [4, 3, 2, 9, 8, 7, 6, 5, 4, 3, 2]
  @weight2 = [5, 4, 3, 2, 9, 8, 7, 6, 5, 4, 3, 2]
end