class MoneyConverter
Public Class Methods
new(from_currency, to_currency, amount)
click to toggle source
# File lib/money_converter.rb, line 8 def initialize(from_currency, to_currency, amount) @from_currency = from_currency @to_currency = to_currency @amount = amount end
Public Instance Methods
exchange()
click to toggle source
# File lib/money_converter.rb, line 14 def exchange api_request(@amount, @from_currency, @to_currency) end