Sha256: c99a3329c4027f4bc4ad74fa60ada0b761afa94fddcf69d9019faa83532f666d

Contents?: true

Size: 196 Bytes

Versions: 14

Compression:

Stored size: 196 Bytes

Contents

# frozen_string_literal: true

class Valvat
  module Checksum
    class PT < Base
      def check_digit
        chk = sum_of_figues_for_pt_si
        chk > 9 ? 0 : chk
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

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