Class: BrDocuments::IE::Pattern2
- Includes:
- Commons::Mod11
- Defined in:
- lib/br_documents/ie/pattern2.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(number) ⇒ Pattern2
constructor
A new instance of Pattern2.
Methods included from Commons::Mod11
#generate_digital_check, #reduce_weights
Methods inherited from Base
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 |