Class: Sepa::DirectDebitOrder::BankAccount

Inherits:
Object
  • Object
show all
Defined in:
lib/sepa/direct_debit_order.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(iban, swift) ⇒ BankAccount

Returns a new instance of BankAccount.



94
95
96
# File 'lib/sepa/direct_debit_order.rb', line 94

def initialize iban, swift
  @iban, @swift = iban, swift
end

Instance Attribute Details

#ibanObject

Returns the value of attribute iban.



92
93
94
# File 'lib/sepa/direct_debit_order.rb', line 92

def iban
  @iban
end

#swiftObject

Returns the value of attribute swift.



92
93
94
# File 'lib/sepa/direct_debit_order.rb', line 92

def swift
  @swift
end

Instance Method Details

#to_properties(prefix) ⇒ Object



98
99
100
101
# File 'lib/sepa/direct_debit_order.rb', line 98

def to_properties prefix
  { "#{prefix}_account.identification.iban"                       => iban,
    "#{prefix}_agent.financial_institution_identification.bic_fi" => swift }
end