Module: FFaker::Currency

Extended by:
Currency, ModuleUtils
Included in:
Currency
Defined in:
lib/ffaker/currency.rb

Instance Method Summary collapse

Methods included from ModuleUtils

const_missing, k, luhn_check, underscore, unique

Methods included from RandomUtils

#fetch_sample, #rand, #shuffle

Instance Method Details

#codeObject



8
9
10
# File 'lib/ffaker/currency.rb', line 8

def code
  fetch_sample(CURRENCY_CODE)
end

#nameObject



12
13
14
# File 'lib/ffaker/currency.rb', line 12

def name
  fetch_sample(CURRENCY_NAME)
end

#symbolObject



16
17
18
# File 'lib/ffaker/currency.rb', line 16

def symbol
  fetch_sample(CURRENCY_SYMBOL)
end