class Money::Bank::Historical::Configuration

Configuration class for Money::Bank::Historical

Attributes

base_currency[RW]

Money::Currency relative to which all exchange rates will be cached

oer_account_type[RW]

type of account on OpenExchangeRates, to know which API endpoints are useable

oer_app_id[RW]

OpenExchangeRates app ID

redis_namespace[RW]

Redis namespace in which the exchange rates will be cached

redis_url[RW]

URL of the Redis server

timeout[RW]

timeout to set in the OpenExchangeRates requests

Public Class Methods

new() click to toggle source
# File lib/money/bank/historical.rb, line 44
def initialize
  @base_currency = Currency.new('EUR')
  @redis_url = 'redis://localhost:6379'
  @redis_namespace = 'currency'
  @oer_app_id = nil
  @timeout = 15
  @oer_account_type = RatesProvider::OpenExchangeRates::AccountType::ENTERPRISE
end