Class: Economy::Configuration
- Inherits:
-
Object
- Object
- Economy::Configuration
- Defined in:
- lib/economy/configuration.rb
Instance Attribute Summary collapse
-
#default_currency ⇒ Object
Returns the value of attribute default_currency.
-
#rates ⇒ Object
Returns the value of attribute rates.
Instance Method Summary collapse
Instance Attribute Details
#default_currency ⇒ Object
Returns the value of attribute default_currency.
4 5 6 |
# File 'lib/economy/configuration.rb', line 4 def default_currency @default_currency end |
#rates ⇒ Object
Returns the value of attribute rates.
4 5 6 |
# File 'lib/economy/configuration.rb', line 4 def rates @rates end |
Instance Method Details
#add_currency(*args) ⇒ Object
6 7 8 |
# File 'lib/economy/configuration.rb', line 6 def add_currency(*args) Economy.currencies.add *args end |