Sha256: 97c9b0402e1166eadb0167f577443d02b69a1c006687c76b5449083d028ea9f0

Contents?: true

Size: 201 Bytes

Versions: 16

Compression:

Stored size: 201 Bytes

Contents

# frozen_string_literal: true

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

16 entries across 16 versions & 1 rubygems

Version Path
valvat-2.0.1 lib/valvat/checksum/be.rb
valvat-2.0.0 lib/valvat/checksum/be.rb
valvat-1.4.4 lib/valvat/checksum/be.rb
valvat-1.4.3 lib/valvat/checksum/be.rb
valvat-1.4.2 lib/valvat/checksum/be.rb
valvat-1.4.1 lib/valvat/checksum/be.rb
valvat-1.4.0 lib/valvat/checksum/be.rb
valvat-1.3.0 lib/valvat/checksum/be.rb
valvat-1.2.1 lib/valvat/checksum/be.rb
valvat-1.2.0 lib/valvat/checksum/be.rb
valvat-1.1.5 lib/valvat/checksum/be.rb
valvat-1.1.4 lib/valvat/checksum/be.rb
valvat-1.1.3 lib/valvat/checksum/be.rb
valvat-1.1.2 lib/valvat/checksum/be.rb
valvat-1.1.1 lib/valvat/checksum/be.rb
valvat-1.1.0 lib/valvat/checksum/be.rb