Class: XEClient::Client
- Inherits:
-
Object
- Object
- XEClient::Client
- Includes:
- ActiveModel::Validations
- Defined in:
- lib/xe_client/client.rb
Constant Summary collapse
- DEFAULT_URL =
"https://xecdapi.xe.com"
Instance Method Summary collapse
Instance Method Details
#convert_from(base_currency, counter_currencies, amount) ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/xe_client/client.rb', line 14 def convert_from(base_currency, counter_currencies, amount) args = default_args.merge( base_currency: base_currency, counter_currencies: counter_currencies, amount: amount, ) raw_response = ConvertFromRequest.(args) ConvertFromResponse.(raw_response) end |