Class: Faker::Currency

Inherits:
Base
  • Object
show all
Defined in:
lib/faker/default/currency.rb

Constant Summary

Constants inherited from Base

Base::Letters, Base::Numbers, Base::ULetters

Class Method Summary collapse

Methods inherited from Base

bothify, disable_enforce_available_locales, fetch, fetch_all, flexible, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, resolve, respond_to_missing?, sample, shuffle, translate, unique, with_locale

Class Method Details

.codeObject


10
11
12
# File 'lib/faker/default/currency.rb', line 10

def code
  fetch('currency.code')
end

.nameObject


6
7
8
# File 'lib/faker/default/currency.rb', line 6

def name
  fetch('currency.name')
end

.symbolObject


14
15
16
# File 'lib/faker/default/currency.rb', line 14

def symbol
  fetch('currency.symbol')
end