Class: BrDocuments::IE::RJ
- Defined in:
- lib/br_documents/ie/rj.rb
Instance Method Summary collapse
-
#initialize(number) ⇒ RJ
constructor
A new instance of RJ.
Methods included from Commons::Mod11
#generate_digital_check, #reduce_weights
Methods inherited from Base
Constructor Details
#initialize(number) ⇒ RJ
Returns a new instance of RJ.
6 7 8 9 10 |
# File 'lib/br_documents/ie/rj.rb', line 6 def initialize(number) super @mask = /^(\d{2}\.\d{3}\.\d{2}\-?\d{1})$|^(\d{8})$/ @weight = [2, 7, 6, 5, 4, 3, 2] end |