lib/latinum/currencies/global.rb in latinum-0.2.0 vs lib/latinum/currencies/global.rb in latinum-0.2.3
- old
+ new
@@ -25,42 +25,55 @@
module Latinum
module Currencies
Global = {}
Global[:NZD] = {
+ :precision => 2,
:symbol => '$',
:name => 'NZD',
:description => 'New Zealand Dollar',
:formatter => Formatters::DecimalCurrencyFormatter,
}
Global[:GBP] = {
+ :precision => 2,
:symbol => '£',
:name => 'GBP',
:description => 'Pound Sterling',
:formatter => Formatters::DecimalCurrencyFormatter,
}
Global[:AUD] = {
+ :precision => 2,
:symbol => '$',
:name => 'AUD',
:description => 'Australian Dollar',
:formatter => Formatters::DecimalCurrencyFormatter,
}
Global[:USD] = {
+ :precision => 2,
:symbol => '$',
:name => 'USD',
:description => 'United States Dollar',
:formatter => Formatters::DecimalCurrencyFormatter,
}
Global[:EUR] = {
+ :precision => 2,
:symbol => '€',
:name => 'EUR',
:description => 'Euro',
:formatter => Formatters::DecimalCurrencyFormatter,
#:delimeter => '.',
#:separator => ','
+ }
+
+ Global[:JPY] = {
+ :precision => 0,
+ :symbol => '¥',
+ :name => 'JPY',
+ :description => 'Japanese Yen',
+ :formatter => Formatters::DecimalCurrencyFormatter
}
end
end