Sha256: bdb339586a3b1e6c6537de3d919fbe7678fda55ad7ec55a040cdbc9bb9f1f520
Contents?: true
Size: 272 Bytes
Versions: 12
Compression:
Stored size: 272 Bytes
Contents
class Valvat module Checksum class HU < Base def check_digit multipliers = [3, 7, 9, 1, 3, 7, 9] sum = sum_figures_by do |digit, index| digit * multipliers[index] end (10 - sum % 10) % 10 end end end end
Version data entries
12 entries across 12 versions & 1 rubygems