Sha256: 752c5bfd8af8d6356df9a1ef56f5060aca22cd69b5caf001fd20e68c52e741a9
Contents?: true
Size: 245 Bytes
Versions: 4
Compression:
Stored size: 245 Bytes
Contents
Danconia.configure do |config| config.default_currency = 'ARS' config.default_exchange = Danconia::Exchanges::FixedRates.new(rates: {'USDARS' => 27.5, 'USDEUR' => 0.86}) end puts Money(10, 'ARS').exchange_to('EUR').inspect # => 0.31273 EUR
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
danconia-0.4.0 | examples/fixed_rates.rb |
danconia-0.3.1 | examples/fixed_rates.rb |
danconia-0.3.0 | examples/fixed_rates.rb |
danconia-0.2.9 | examples/fixed_rates.rb |