Class: Monee::NoConfig
- Includes:
- Singleton
- Defined in:
- lib/monee/no_config.rb
Overview
inherits from config and this the null object for config with default values
Constant Summary collapse
- DEFAULT_BASE_CURRENCY =
default base currecy
'EUR'.freeze
- DEFAULT_CURRENCY_RATES =
default currency_rates
{ 'USD' => 1.11, 'Bitcoin' => 0.0047 }
Constants inherited from Config
Instance Method Summary collapse
Methods inherited from Config
#available_currencies, #exists?, #fetch_rate, #reset, #set_default_rate
Instance Method Details
#base_currency ⇒ String
18 19 20 |
# File 'lib/monee/no_config.rb', line 18 def base_currency DEFAULT_BASE_CURRENCY end |
#currency_rates ⇒ Hash
23 24 25 |
# File 'lib/monee/no_config.rb', line 23 def currency_rates DEFAULT_CURRENCY_RATES end |