Class: Moolah::Currency
- Inherits:
-
Object
- Object
- Moolah::Currency
- Includes:
- Anemic::Model
- Defined in:
- lib/moolah/currency.rb
Class Method Summary collapse
Class Method Details
.currencies ⇒ Object
22 23 24 |
# File 'lib/moolah/currency.rb', line 22 def self.currencies CurrencyRegistry.currencies end |
.currency(code = 'AUD') ⇒ Object
18 19 20 |
# File 'lib/moolah/currency.rb', line 18 def self.currency(code = 'AUD') currencies[code] end |
.supported_currency_codes ⇒ Object
14 15 16 |
# File 'lib/moolah/currency.rb', line 14 def self.supported_currency_codes currencies.keys end |