Module: Ibandit::GermanDetailsConverter::PseudoAccountNumberBehaviour
- Included in:
- Rule000400, Rule000600, Rule000700, Rule001100, Rule001501, Rule001600, Rule001700, Rule001800, Rule002200, Rule002300, Rule002400, Rule004400, Rule005100, Rule005401
- Defined in:
- lib/ibandit/german_details_converter.rb
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_details ⇒ Object
54 55 56 57 58 59 60 61 62 |
# File 'lib/ibandit/german_details_converter.rb', line 54 def converted_details updated_account_number = pseudo_account_number_mapping.fetch( @account_number.rjust(10, "0"), @account_number, ) { bank_code: @bank_code, account_number: updated_account_number } end |
#pseudo_account_number_mapping ⇒ Object
64 65 66 |
# File 'lib/ibandit/german_details_converter.rb', line 64 def pseudo_account_number_mapping self.class.pseudo_account_number_mapping.freeze end |