Module: LucaBook::Code

Defined in:
lib/luca_book/code.rb

Class Method Summary collapse

Class Method Details

.currency_code(country) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/luca_book/code.rb', line 7

def currency_code(country)
  {
    'de' => 'EUR',
    'ee' => 'EUR',
    'fr' => 'EUR',
    'gb' => 'GBP',
    'in' => 'INR',
    'it' => 'EUR',
    'nl' => 'EUR',
    'jp' => 'JPY',
    'uk' => 'GBP',
    'us' => 'USD'
  }[country]
end