Class: Valvat::Checksum::SE

Inherits:
Base
  • Object
show all
Defined in:
lib/valvat/checksum/se.rb

Instance Attribute Summary

Attributes inherited from Base

#vat

Instance Method Summary collapse

Methods inherited from Base

check_digit_length, #initialize

Constructor Details

This class inherits a constructor from Valvat::Checksum::Base

Instance Method Details

#validateObject



8
9
10
11
# File 'lib/valvat/checksum/se.rb', line 8

def validate
  vat.to_s_wo_country[-2..].to_i.positive? &&
    super
end