Class: Currency

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/currency.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.blankObject



15
16
17
# File 'app/models/currency.rb', line 15

def self.blank
  new
end

.usdObject



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

#symbolObject



6
7
8
# File 'app/models/currency.rb', line 6

def symbol
  major_unit_symbol
end