Sobre a TechFx.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class Techfx
def self.withdraw (amount, currency)
# Converte usando taxa de 0,5%
amount = Bank.convert (amount, currency, 0.005)
# Deposita em seu banco o valor final
Bank.deposit (@account, amount)
end
# Saca o valor convertido rapidamente!
Techfx.withdraw(5000, 'USD')