Skip to content

Commit

Permalink
Create get_balance method
Browse files Browse the repository at this point in the history
  • Loading branch information
Miranda Fleury committed Mar 19, 2024
1 parent 96e0b3d commit 9139256
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,7 @@ def spend_money(self, amount, deferred=False):
raise InsufficientAmount(f"Not enough available to spend {amount}")

self.balance -= amount

def get_balance(self):
return self.balance

0 comments on commit 9139256

Please sign in to comment.