Module: ExchangeRateJt

Defined in:
lib/exchange_rate_jt.rb,
lib/exchange_rate_jt/version.rb,
lib/exchange_rate_jt/configuration.rb,
lib/exchange_rate_jt/exchange_rates.rb,
lib/exchange_rate_jt/rates_source/ecb.rb,
lib/exchange_rate_jt/data_store_factory.rb,
lib/exchange_rate_jt/rates_source_factory.rb,
lib/exchange_rate_jt/data_store/p_store_adaptor.rb

Defined Under Namespace

Modules: DataStore, RatesSource Classes: Configuration, DataStoreFactory, ExchangeRates, FutureDateError, InvalidDataStoreTypeError, InvalidDateError, LookupError, NoExchangeRateDataError, RateNotFoundError, RatesSourceFactory, UpdateError

Constant Summary collapse

VERSION =
"0.1.9"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



9
10
11
# File 'lib/exchange_rate_jt.rb', line 9

def configuration
  @configuration
end

.exchange_ratesObject

Returns the value of attribute exchange_rates.



10
11
12
# File 'lib/exchange_rate_jt.rb', line 10

def exchange_rates
  @exchange_rates
end

Class Method Details

.at(date, base, counter) ⇒ Object



29
30
31
# File 'lib/exchange_rate_jt.rb', line 29

def self.at(date, base, counter)
  exchange_rates.at(date, base, counter)
end

.configure {|configuration| ... } ⇒ Object

Yields:



21
22
23
# File 'lib/exchange_rate_jt.rb', line 21

def self.configure
  yield(configuration)
end

.update_exchange_ratesObject



25
26
27
# File 'lib/exchange_rate_jt.rb', line 25

def self.update_exchange_rates
  exchange_rates.update
end