Class: BrDocuments::IE::RR

Inherits:
Pattern1 show all
Defined in:
lib/br_documents/ie/rr.rb

Instance Method Summary collapse

Methods included from Commons::Mod11

#reduce_weights

Methods inherited from Base

#formatted, #valid?

Constructor Details

#initialize(number) ⇒ RR

Returns a new instance of RR.



6
7
8
9
10
# File 'lib/br_documents/ie/rr.rb', line 6

def initialize(number)
  super
  @mask = /^(\d{8}\-\d{1})$|^(\d{9})$/
  @weight = [1, 2, 3, 4, 5, 6, 7, 8]
end