Module: Ibandit::GermanDetailsConverter::PseudoAccountNumberBehaviour

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(o) ⇒ Object



46
47
48
# File 'lib/ibandit/german_details_converter.rb', line 46

def self.included(o)
  o.extend(ClassMethods)
end

Instance Method Details

#converted_detailsObject



54
55
56
57
58
59
60
61
62
# File 'lib/ibandit/german_details_converter.rb', line 54

def converted_details
   =
    .fetch(
      @account_number.rjust(10, "0"),
      @account_number,
    )

  { bank_code: @bank_code, account_number:  }
end

#pseudo_account_number_mappingObject



64
65
66
# File 'lib/ibandit/german_details_converter.rb', line 64

def 
  self.class..freeze
end