Class: Monee::NoConfig

Inherits:
Config
  • Object
show all
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

Config::DEFAULT_RATE

Instance Method Summary collapse

Methods inherited from Config

#available_currencies, #exists?, #fetch_rate, #reset, #set_default_rate

Instance Method Details

#base_currencyString

Returns:

  • (String)


18
19
20
# File 'lib/monee/no_config.rb', line 18

def base_currency
  DEFAULT_BASE_CURRENCY
end

#currency_ratesHash

Returns:

  • (Hash)


23
24
25
# File 'lib/monee/no_config.rb', line 23

def currency_rates
  DEFAULT_CURRENCY_RATES
end