Class: XEClient::ConvertFromRequest
- Inherits:
-
BaseRequest
- Object
- BaseRequest
- XEClient::ConvertFromRequest
- Defined in:
- lib/xe_client/requests/convert_from_request.rb
Constant Summary collapse
- DEFAULT_PATH =
"/v1/convert_from.json"
Instance Method Summary collapse
Methods inherited from BaseRequest
Instance Method Details
#call ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/xe_client/requests/convert_from_request.rb', line 17 def call HTTParty.get( endpoint, query: { from: base_currency, to: counter_currencies.join(","), amount: amount, }, basic_auth: { username: account_id, password: api_key }, ) end |