Sha256: 6841f5142af1023964d84b2ab8865292978183a05f38dfeb947a4b12786a229f

Contents?: true

Size: 191 Bytes

Versions: 8

Compression:

Stored size: 191 Bytes

Contents

require 'valvat/checksum'

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

8 entries across 8 versions & 1 rubygems

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