Class: Money::Config
- Inherits:
-
Object
- Object
- Money::Config
- Defined in:
- lib/money/config.rb
Instance Attribute Summary collapse
-
#conversions ⇒ Object
Returns the value of attribute conversions.
-
#default_currency ⇒ Object
Returns the value of attribute default_currency.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
5 6 7 8 |
# File 'lib/money/config.rb', line 5 def initialize @default_currency = 'USD' @conversions = { 'USD' => 1 } end |
Instance Attribute Details
#conversions ⇒ Object
Returns the value of attribute conversions.
3 4 5 |
# File 'lib/money/config.rb', line 3 def conversions @conversions end |
#default_currency ⇒ Object
Returns the value of attribute default_currency.
3 4 5 |
# File 'lib/money/config.rb', line 3 def default_currency @default_currency end |