Sha256: fd6e05e2da8d5f5b6bee530c5a2522f4f0f81138fcf0286c07691cb653f54ae6

Contents?: true

Size: 191 Bytes

Versions: 9

Compression:

Stored size: 191 Bytes

Contents

require 'valvat/checksum'

class Valvat
  module Checksum
    class LU < Base
      check_digit_length 2

      def check_digit
        figures_str.to_i.modulo(89)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
valvat-0.6.7 lib/valvat/checksum/lu.rb
valvat-0.6.6 lib/valvat/checksum/lu.rb
valvat-0.6.5 lib/valvat/checksum/lu.rb
valvat-0.6.4 lib/valvat/checksum/lu.rb
valvat-0.6.3 lib/valvat/checksum/lu.rb
valvat-0.6.2 lib/valvat/checksum/lu.rb
valvat-0.6.1 lib/valvat/checksum/lu.rb
valvat-0.6.0 lib/valvat/checksum/lu.rb
valvat-0.5.0 lib/valvat/checksum/lu.rb