Class: Currency
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Currency
- Defined in:
- app/models/currency.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.blank ⇒ Object
15 16 17 |
# File 'app/models/currency.rb', line 15 def self.blank new end |
.usd ⇒ Object
10 11 12 13 |
# File 'app/models/currency.rb', line 10 def self.usd # Pull the usd currency from GeoCountry find_by_internal_identifier("USD") end |
Instance Method Details
#symbol ⇒ Object
6 7 8 |
# File 'app/models/currency.rb', line 6 def symbol major_unit_symbol end |