Sha256: 08c838dccdc074531efb7fd2e4df79ccf8ffbe6fbc4ab3a7e3d993fd4850bc71

Contents?: true

Size: 248 Bytes

Versions: 5

Compression:

Stored size: 248 Bytes

Contents

class Valvat
  module Checksum
    class SI < Base
      def validate
        figures_str.to_i > 999999 &&
        super
      end

      def check_digit
        chk = sum_of_figues_for_pt_si
        chk == 10 ? 0 : chk
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
valvat-1.0.1 lib/valvat/checksum/si.rb
valvat-1.0.0 lib/valvat/checksum/si.rb
valvat-0.9.1 lib/valvat/checksum/si.rb
valvat-0.9.0 lib/valvat/checksum/si.rb
valvat-0.8.2 lib/valvat/checksum/si.rb