Coin
module
- There are four coin types
- Copper, has a gold value of
0.01
- Silver, has a gold value of
0.1
- Gold, has a gold value of
1.0
- Platinum, has a gold value of
10.0
- Copper, has a gold value of
- Get the value of a given coin into another coin with
.value
Purse
class
- Add or remove coins with
#add_coins
and#remove_coins
- Get the amount of a specific coin currently in the purse with
#amount
- Get total value of the purse in a given coin with
#value