Method: Ibanify::IBAN#validation_error
- Defined in:
- lib/ibanify.rb
#validation_error ⇒ Object
15 16 17 18 19 20 |
# File 'lib/ibanify.rb', line 15 def validation_error return :invalid_country_code unless countries[country_code] return :invalid_length unless countries[country_code]['length'] == @number.size return :invalid_bban unless bban =~ countries[country_code]['bban'] return :invalid_check_digits unless valid_check_digits? end |