Class: CurrencyConversion::CurrenciesEndpoint
- Defined in:
- lib/currency-conversion/endpoints/currencies.rb
Overview
Currencies Endpoint
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
-
#retrieve(currencies: nil) ⇒ Currencies
Returns all supported currencies.
Methods inherited from Resource
Constructor Details
This class inherits a constructor from CurrencyConversion::Resource
Instance Method Details
#retrieve(currencies: nil) ⇒ Currencies
Returns all supported currencies
14 15 16 17 18 |
# File 'lib/currency-conversion/endpoints/currencies.rb', line 14 def retrieve(currencies: nil) params = {} params[:currencies] = currencies.join(',') if currencies.present? Currencies.new get_request('currencies', params: params) end |