Sha256: 83d345afd0dcf45c0bf02fa839cf86fe6844411ea2e884e4bb984b7a423aa211

Contents?: true

Size: 260 Bytes

Versions: 8

Compression:

Stored size: 260 Bytes

Contents

require 'valvat/checksum'

class Valvat
  module Checksum
    class AT < Base
      def check_digit
        chk = 96 - sum_of_figures_for_at_es_it_se
        chk.to_s[-1].to_i
      end

      def str_wo_country
        super[1..-1]
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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