Class: MoneyAttribute::Configuration
- Inherits:
-
Object
- Object
- MoneyAttribute::Configuration
- Defined in:
- lib/money_attribute/configuration.rb
Instance Attribute Summary collapse
-
#added_currencies ⇒ Object
Returns the value of attribute added_currencies.
-
#default_currency ⇒ Object
Returns the value of attribute default_currency.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 |
# File 'lib/money_attribute/configuration.rb', line 7 def initialize @added_currencies = [] @default_currency = 'USD' end |
Instance Attribute Details
#added_currencies ⇒ Object
Returns the value of attribute added_currencies.
5 6 7 |
# File 'lib/money_attribute/configuration.rb', line 5 def added_currencies @added_currencies end |
#default_currency ⇒ Object
Returns the value of attribute default_currency.
5 6 7 |
# File 'lib/money_attribute/configuration.rb', line 5 def default_currency @default_currency end |