Module: Danconia
- Defined in:
- lib/danconia/pair.rb,
lib/danconia/money.rb,
lib/danconia/config.rb,
lib/danconia/version.rb,
lib/danconia/currency.rb,
lib/danconia/exchange.rb,
lib/danconia/serializable.rb,
lib/danconia/test_helpers.rb,
lib/danconia/exchanges/bna.rb,
lib/danconia/errors/api_error.rb,
lib/danconia/stores/in_memory.rb,
lib/danconia/stores/active_record.rb,
lib/danconia/exchanges/fixed_rates.rb,
lib/danconia/exchanges/currency_layer.rb,
lib/danconia/integrations/active_record.rb,
lib/danconia/errors/exchange_rate_not_found.rb
Defined Under Namespace
Modules: Errors, Exchanges, Integrations, Serializable, Stores, TestHelpers
Classes: Config, Currency, Exchange, Money, Pair
Constant Summary
collapse
- VERSION =
'0.4.0'
Class Method Summary
collapse
Class Method Details
.config ⇒ Object
3
4
5
|
# File 'lib/danconia/config.rb', line 3
def config
@config ||= Config.new
end
|
.config=(c) ⇒ Object
7
8
9
|
# File 'lib/danconia/config.rb', line 7
def config= c
@config = c
end
|
11
12
13
|
# File 'lib/danconia/config.rb', line 11
def configure
yield config
end
|