Class: MT940::Transaction

Inherits:
Object
  • Object
show all
Defined in:
lib/mt940/transaction.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#amountObject

Returns the value of attribute amount.



5
6
7
# File 'lib/mt940/transaction.rb', line 5

def amount
  @amount
end

#bankObject

Returns the value of attribute bank.



5
6
7
# File 'lib/mt940/transaction.rb', line 5

def bank
  @bank
end

#bank_accountObject

Returns the value of attribute bank_account.



5
6
7
# File 'lib/mt940/transaction.rb', line 5

def 
  @bank_account
end

#bank_account_ibanObject

Returns the value of attribute bank_account_iban.



5
6
7
# File 'lib/mt940/transaction.rb', line 5

def 
  @bank_account_iban
end

#contra_accountObject

Returns the value of attribute contra_account.



5
6
7
# File 'lib/mt940/transaction.rb', line 5

def 
  @contra_account
end

#contra_account_ibanObject

Returns the value of attribute contra_account_iban.



5
6
7
# File 'lib/mt940/transaction.rb', line 5

def 
  @contra_account_iban
end

#contra_account_ownerObject

Returns the value of attribute contra_account_owner.



5
6
7
# File 'lib/mt940/transaction.rb', line 5

def 
  @contra_account_owner
end

#currencyObject

Returns the value of attribute currency.



5
6
7
# File 'lib/mt940/transaction.rb', line 5

def currency
  @currency
end

#dateObject

Returns the value of attribute date.



5
6
7
# File 'lib/mt940/transaction.rb', line 5

def date
  @date
end

#descriptionObject

Returns the value of attribute description.



5
6
7
# File 'lib/mt940/transaction.rb', line 5

def description
  @description
end

#typeObject

Returns the value of attribute type.



5
6
7
# File 'lib/mt940/transaction.rb', line 5

def type
  @type
end