Class: XEClient::ConvertFromRequest

Inherits:
BaseRequest show all
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

call

Instance Method Details

#callObject



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: , password: api_key },
  )
end