Class: Valvat::Checksum::LU

Inherits:
Base
  • Object
show all
Defined in:
lib/valvat/checksum/lu.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/lu.rb', line 8

def check_digit
  figures_str.to_i.modulo(89)
end