Class: Danconia::Config
- Inherits:
-
Object
- Object
- Danconia::Config
- Defined in:
- lib/danconia/config.rb
Instance Attribute Summary collapse
-
#available_currencies ⇒ Object
Returns the value of attribute available_currencies.
-
#default_currency ⇒ Object
Returns the value of attribute default_currency.
-
#default_exchange ⇒ Object
Returns the value of attribute default_exchange.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
19 20 21 22 23 |
# File 'lib/danconia/config.rb', line 19 def initialize @default_currency = 'USD' @default_exchange = Exchanges::FixedRates.new @available_currencies = [] end |
Instance Attribute Details
#available_currencies ⇒ Object
Returns the value of attribute available_currencies.
17 18 19 |
# File 'lib/danconia/config.rb', line 17 def available_currencies @available_currencies end |
#default_currency ⇒ Object
Returns the value of attribute default_currency.
17 18 19 |
# File 'lib/danconia/config.rb', line 17 def default_currency @default_currency end |
#default_exchange ⇒ Object
Returns the value of attribute default_exchange.
17 18 19 |
# File 'lib/danconia/config.rb', line 17 def default_exchange @default_exchange end |