Table of Contents - currencylayer-historical-bank-0.0.3 Documentation
Pages
-
README
- Currencylayer API
- Installation
- Usage
- Minimal requirements
- Update rates (get new rates from remote if expired or access rates from cache)
- Force update rates from remote and store in cache
- mclb.update_rates(true)
- (optional)
- Set the base currency for all rates. By default, USD is used.
- CurrencylayerHistoricalBank only allows USD as base currency for the free plan users.
- (optional)
- Set the seconds after than the current rates are automatically expired
- by default, they never expire, in this example 1 day.
- (optional)
- Use https to fetch rates from CurrencylayerHistoricalBank
- CurrencylayerHistoricalBank only allows http as connection for the free plan users.
- Define cache (string or pathname)
- Set money default bank to currencylayer bank
- More methods
- Returns the base currency set for all rates.
- Expires rates if the expiration time is reached.
- Return true if the expiration time is reached.
- Get the API source url.
- Get the rates timestamp of the last API request.
- How to exchange
- Exchange 1000 cents (10.0 USD) to EUR
- Format
- Get the rate
- Using gem money-rails
- Cache
- Process
- Tests
- Refs
- Other Implementations
- Contributing
- License
Classes and Modules
- Money
- Money::Bank
- Money::Bank::CurrencylayerHistoricalBank
- Money::Bank::InvalidCache
- Money::Bank::NoAccessKey
Methods
- #exchange_rates — Money::Bank::CurrencylayerHistoricalBank
- #expire_rates! — Money::Bank::CurrencylayerHistoricalBank
- #expired? — Money::Bank::CurrencylayerHistoricalBank
- #get_rate — Money::Bank::CurrencylayerHistoricalBank
- #init_rates_timestamp — Money::Bank::CurrencylayerHistoricalBank
- #open_url — Money::Bank::CurrencylayerHistoricalBank
- #rates_timestamp — Money::Bank::CurrencylayerHistoricalBank
- #raw_rates_careful — Money::Bank::CurrencylayerHistoricalBank
- #raw_rates_straight — Money::Bank::CurrencylayerHistoricalBank
- #read_from_cache — Money::Bank::CurrencylayerHistoricalBank
- #read_from_url — Money::Bank::CurrencylayerHistoricalBank
- #refresh_rates_expiration! — Money::Bank::CurrencylayerHistoricalBank
- #source — Money::Bank::CurrencylayerHistoricalBank
- #source= — Money::Bank::CurrencylayerHistoricalBank
- #source_url — Money::Bank::CurrencylayerHistoricalBank
- #store_in_cache — Money::Bank::CurrencylayerHistoricalBank
- #ttl_in_seconds= — Money::Bank::CurrencylayerHistoricalBank
- #update_rates — Money::Bank::CurrencylayerHistoricalBank
- #valid_rates? — Money::Bank::CurrencylayerHistoricalBank
- #write_to_file — Money::Bank::CurrencylayerHistoricalBank