Module: ExchangerateHost
- Defined in:
- lib/exchangerate_host.rb,
lib/exchangerate_host/version.rb,
lib/exchangerate_host/configurations.rb,
lib/exchangerate_host/endpoints/base.rb,
lib/exchangerate_host/endpoints/validation.rb,
lib/exchangerate_host/endpoints/fluctuation.rb,
lib/exchangerate_host/endpoints/time_series.rb,
lib/exchangerate_host/endpoints/latest_rates.rb,
lib/exchangerate_host/endpoints/convert_currency.rb,
lib/exchangerate_host/endpoints/historical_rates.rb,
lib/exchangerate_host/endpoints/supported_symbols.rb
Defined Under Namespace
Modules: Endpoints Classes: Configurations
Constant Summary collapse
- VERSION =
"0.0.1"
Class Attribute Summary collapse
-
.configurations ⇒ Object
Returns the value of attribute configurations.
Class Method Summary collapse
- .configure {|configurations| ... } ⇒ Object
- .convert_currency(options = {}) ⇒ Object
- .fluctuation(options = {}) ⇒ Object
- .historical_rates(options = {}) ⇒ Object
- .latest_rates(options = {}) ⇒ Object
- .reset_configurations ⇒ Object
- .supported_symbols(options = {}) ⇒ Object
- .time_series(options = {}) ⇒ Object
Class Attribute Details
.configurations ⇒ Object
Returns the value of attribute configurations.
12 13 14 |
# File 'lib/exchangerate_host.rb', line 12 def configurations @configurations end |
Class Method Details
.configure {|configurations| ... } ⇒ Object
18 19 20 |
# File 'lib/exchangerate_host.rb', line 18 def configure yield(configurations) end |
.convert_currency(options = {}) ⇒ Object
30 31 32 |
# File 'lib/exchangerate_host.rb', line 30 def convert_currency( = {}) Endpoints::ConvertCurrency.request() end |
.fluctuation(options = {}) ⇒ Object
42 43 44 |
# File 'lib/exchangerate_host.rb', line 42 def fluctuation( = {}) Endpoints::Fluctuation.request() end |
.historical_rates(options = {}) ⇒ Object
34 35 36 |
# File 'lib/exchangerate_host.rb', line 34 def historical_rates( = {}) Endpoints::HistoricalRates.request() end |
.latest_rates(options = {}) ⇒ Object
26 27 28 |
# File 'lib/exchangerate_host.rb', line 26 def latest_rates( = {}) Endpoints::LatestRates.request() end |
.reset_configurations ⇒ Object
22 23 24 |
# File 'lib/exchangerate_host.rb', line 22 def reset_configurations @configurations = Configurations.new end |
.supported_symbols(options = {}) ⇒ Object
46 47 48 |
# File 'lib/exchangerate_host.rb', line 46 def supported_symbols( = {}) Endpoints::SupportedSymbols.request() end |
.time_series(options = {}) ⇒ Object
38 39 40 |
# File 'lib/exchangerate_host.rb', line 38 def time_series( = {}) Endpoints::TimeSeries.request() end |