Class: Ibandit::GermanDetailsConverter::Rule000503::Check76

Inherits:
Object
  • Object
show all
Defined in:
lib/ibandit/german_details_converter.rb

Instance Method Summary collapse

Constructor Details

#initialize(account_number) ⇒ Check76

Returns a new instance of Check76.



291
292
293
# File 'lib/ibandit/german_details_converter.rb', line 291

def initialize()
  @account_number = .rjust(10, "0")
end

Instance Method Details

#valid?Boolean

Returns:

  • (Boolean)


295
296
297
298
299
# File 'lib/ibandit/german_details_converter.rb', line 295

def valid?
  return false unless valid_length? && 

  [master_number[-1].to_i, 10].include?(remainder)
end