Class: Budget

Budget(storage)

Handles budget related things.

Constructor

new Budget(storage)

Parameters:
Name Type Description
storage Storage Storage object.
Source:

Methods

addBudget(newBudget)

Adds a new budget to the array of available budgets.
Parameters:
Name Type Description
newBudget string The name of the new budget.
Source:

deleteBudget(name)

Deletes a given budget (and removes all corresponding data).
Parameters:
Name Type Description
name string The name of the budget to delete.
Source:

renameBudget(oldName, newName)

Renames a given budget (replaces its name with a new name).
Parameters:
Name Type Description
oldName string The old name of the budget.
newName string The new name of the budget.
Source: