Class: Sepa::DirectDebitOrder::BankAccount
- Inherits:
-
Object
- Object
- Sepa::DirectDebitOrder::BankAccount
- Defined in:
- lib/sepa/direct_debit_order.rb
Instance Attribute Summary collapse
-
#iban ⇒ Object
Returns the value of attribute iban.
-
#swift ⇒ Object
Returns the value of attribute swift.
Instance Method Summary collapse
-
#initialize(iban, swift) ⇒ BankAccount
constructor
A new instance of BankAccount.
- #to_properties(prefix) ⇒ Object
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
#iban ⇒ Object
Returns the value of attribute iban.
92 93 94 |
# File 'lib/sepa/direct_debit_order.rb', line 92 def iban @iban end |
#swift ⇒ Object
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 |