Sha256: 196a3ab882c1b2268f55b04397397d02083369227f841e2e812deef26cb7d492

Contents?: true

Size: 265 Bytes

Versions: 9

Compression:

Stored size: 265 Bytes

Contents

# frozen_string_literal: true

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

9 entries across 9 versions & 1 rubygems

Version Path
valvat-1.3.0 lib/valvat/checksum/at.rb
valvat-1.2.1 lib/valvat/checksum/at.rb
valvat-1.2.0 lib/valvat/checksum/at.rb
valvat-1.1.5 lib/valvat/checksum/at.rb
valvat-1.1.4 lib/valvat/checksum/at.rb
valvat-1.1.3 lib/valvat/checksum/at.rb
valvat-1.1.2 lib/valvat/checksum/at.rb
valvat-1.1.1 lib/valvat/checksum/at.rb
valvat-1.1.0 lib/valvat/checksum/at.rb