Class: Volksbanker::Statement
- Inherits:
-
Object
- Object
- Volksbanker::Statement
- Defined in:
- lib/volksbanker/statement.rb
Instance Attribute Summary collapse
-
#closing_balance ⇒ Object
readonly
Returns the value of attribute closing_balance.
-
#opening_balance ⇒ Object
readonly
Returns the value of attribute opening_balance.
-
#transactions ⇒ Object
readonly
Returns the value of attribute transactions.
Instance Method Summary collapse
-
#initialize(transactions, opening_balance, closing_balance) ⇒ Statement
constructor
A new instance of Statement.
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_balance ⇒ Object (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_balance ⇒ Object (readonly)
Returns the value of attribute opening_balance.
3 4 5 |
# File 'lib/volksbanker/statement.rb', line 3 def opening_balance @opening_balance end |
#transactions ⇒ Object (readonly)
Returns the value of attribute transactions.
3 4 5 |
# File 'lib/volksbanker/statement.rb', line 3 def transactions @transactions end |