Sha256: 4366028cb0e4dc4d1870ede67f1f5fb61f98b7b5f0871c5e6915d4e0b23159db
Contents?: true
Size: 259 Bytes
Versions: 13
Compression:
Stored size: 259 Bytes
Contents
class Valvat module Checksum class FR < Base def check_digit siren = str_wo_country[2..-1].to_i (12 + (3 * siren) % 97) % 97 end def given_check_digit str_wo_country[0..1].to_i end end end end
Version data entries
13 entries across 13 versions & 1 rubygems