| 12345678910111213 |
- # frozen_string_literal: true
- module Paratika
- class CurrencyExchange < Request
- attr_reader :from_currency, :to_currency, :amount
- def initialize(from_currency, to_currency, amount)
- @from_currency = validate(from_currency, of: CURRENCIES)
- @to_currency = validate(to_currency, of: CURRENCIES)
- @amount = validate_money(amount)
- super()
- end
- end
- end
|