Class: Volksbanker::Statement

Inherits:
Object
  • Object
show all
Defined in:
lib/volksbanker/statement.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(transactions, opening_balance, closing_balance) ⇒ Statement

Returns a new instance of Statement.



5
6
7
8
9
# File 'lib/volksbanker/statement.rb', line 5

def initialize(transactions, opening_balance, closing_balance)
  @transactions    = transactions
  @opening_balance = opening_balance
  @closing_balance = closing_balance
end

Instance Attribute Details

#closing_balanceObject (readonly)

Returns the value of attribute closing_balance.



3
4
5
# File 'lib/volksbanker/statement.rb', line 3

def closing_balance
  @closing_balance
end

#opening_balanceObject (readonly)

Returns the value of attribute opening_balance.



3
4
5
# File 'lib/volksbanker/statement.rb', line 3

def opening_balance
  @opening_balance
end

#transactionsObject (readonly)

Returns the value of attribute transactions.



3
4
5
# File 'lib/volksbanker/statement.rb', line 3

def transactions
  @transactions
end