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.



96
97
98
# File 'lib/sepa/direct_debit_order.rb', line 96

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

Instance Attribute Details

#ibanObject

Returns the value of attribute iban.



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

def iban
  @iban
end

#swiftObject

Returns the value of attribute swift.



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

def swift
  @swift
end

Instance Method Details

#to_properties(prefix) ⇒ Object



100
101
102
103
# File 'lib/sepa/direct_debit_order.rb', line 100

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