Class: MT940::Transaction
- Inherits:
-
Object
- Object
- MT940::Transaction
- Defined in:
- lib/mt940/transaction.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#bank ⇒ Object
Returns the value of attribute bank.
-
#bank_account ⇒ Object
Returns the value of attribute bank_account.
-
#bank_account_iban ⇒ Object
Returns the value of attribute bank_account_iban.
-
#contra_account ⇒ Object
Returns the value of attribute contra_account.
-
#contra_account_iban ⇒ Object
Returns the value of attribute contra_account_iban.
-
#contra_account_owner ⇒ Object
Returns the value of attribute contra_account_owner.
-
#currency ⇒ Object
Returns the value of attribute currency.
-
#date ⇒ Object
Returns the value of attribute date.
-
#description ⇒ Object
Returns the value of attribute description.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Transaction
constructor
A new instance of Transaction.
Constructor Details
#initialize(attributes = {}) ⇒ Transaction
Returns a new instance of Transaction.
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/mt940/transaction.rb', line 7 def initialize(attributes = {}) @bank_account = attributes[:bank_account] @bank_account_iban = attributes[:bank_account_iban] @bank = attributes[:bank] @amount = attributes[:amount] @type = attributes[:type] @description = attributes[:description] @date = attributes[:date] @contra_account = attributes[:contra_account] @contra_account_iban = attributes[:contra_account_iban] @contra_account_owner = attributes[:contra_account_owner] @currency = attributes[:currency] end |
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
5 6 7 |
# File 'lib/mt940/transaction.rb', line 5 def amount @amount end |
#bank ⇒ Object
Returns the value of attribute bank.
5 6 7 |
# File 'lib/mt940/transaction.rb', line 5 def bank @bank end |
#bank_account ⇒ Object
Returns the value of attribute bank_account.
5 6 7 |
# File 'lib/mt940/transaction.rb', line 5 def bank_account @bank_account end |
#bank_account_iban ⇒ Object
Returns the value of attribute bank_account_iban.
5 6 7 |
# File 'lib/mt940/transaction.rb', line 5 def bank_account_iban @bank_account_iban end |
#contra_account ⇒ Object
Returns the value of attribute contra_account.
5 6 7 |
# File 'lib/mt940/transaction.rb', line 5 def contra_account @contra_account end |
#contra_account_iban ⇒ Object
Returns the value of attribute contra_account_iban.
5 6 7 |
# File 'lib/mt940/transaction.rb', line 5 def contra_account_iban @contra_account_iban end |
#contra_account_owner ⇒ Object
Returns the value of attribute contra_account_owner.
5 6 7 |
# File 'lib/mt940/transaction.rb', line 5 def contra_account_owner @contra_account_owner end |
#currency ⇒ Object
Returns the value of attribute currency.
5 6 7 |
# File 'lib/mt940/transaction.rb', line 5 def currency @currency end |
#date ⇒ Object
Returns the value of attribute date.
5 6 7 |
# File 'lib/mt940/transaction.rb', line 5 def date @date end |
#description ⇒ Object
Returns the value of attribute description.
5 6 7 |
# File 'lib/mt940/transaction.rb', line 5 def description @description end |
#type ⇒ Object
Returns the value of attribute type.
5 6 7 |
# File 'lib/mt940/transaction.rb', line 5 def type @type end |