Sha256: f692dac8be89876c419db9762226c523b0e33f0ae2bc5b0991dd494e067fab5f

Contents?: true

Size: 196 Bytes

Versions: 9

Compression:

Stored size: 196 Bytes

Contents

require 'valvat/checksum'

class Valvat
  module Checksum
    class BE < Base
      check_digit_length 2

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

Version data entries

9 entries across 9 versions & 1 rubygems

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