Class: Valvat::Checksum::BE

Inherits:
Base
  • Object
show all
Defined in:
lib/valvat/checksum/be.rb

Instance Attribute Summary

Attributes inherited from Base

#vat

Instance Method Summary collapse

Methods inherited from Base

check_digit_length, #initialize, #validate

Constructor Details

This class inherits a constructor from Valvat::Checksum::Base

Instance Method Details

#check_digitObject



8
9
10
# File 'lib/valvat/checksum/be.rb', line 8

def check_digit
  97 - figures_str.to_i.modulo(97)
end