Implements #25
Made a lot of changes. The usage is basically creating an account object, then using the new_transaction() method you can add new transactions to a dictionary which holds every transaction ever made.
The self._balance attribute is the total balance of the account while the self._monthly_target attribute is the target budget for the current month.
More functionality is needed. For example, a method setting current monthly target, when that happens balance should be updated accordingly.
Implements #25 Made a lot of changes. The usage is basically creating an account object, then using the
new_transaction()
method you can add new transactions to a dictionary which holds every transaction ever made.The
self._balance
attribute is the total balance of the account while theself._monthly_target
attribute is the target budget for the current month.More functionality is needed. For example, a method setting current monthly target, when that happens balance should be updated accordingly.