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