Class: Economy::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/economy/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#default_currencyObject

Returns the value of attribute default_currency.



4
5
6
# File 'lib/economy/configuration.rb', line 4

def default_currency
  @default_currency
end

#ratesObject

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