Class: Safai::Money

Inherits:
Object
  • Object
show all
Defined in:
lib/safai/money.rb

Class Method Summary collapse

Class Method Details

.return_money(iso_numeric) ⇒ Object



3
4
5
6
7
8
9
10
# File 'lib/safai/money.rb', line 3

def self.return_money(iso_numeric)
  Money::Currency.table.map.each do |m| 
    if m[1][:iso_numeric] == iso_numeric
      return m
    end
  end
  return nil
end