module Faker::Taxonomy
Constants
- TAXONOMY
- TAXONOMY_CLASSIFICATION
- TAXONOMY_CODE
- TAXONOMY_SPECIALIZATION
- TAXONOMY_TYPE
Public Instance Methods
classification()
click to toggle source
# File lib/ffaker/taxonomy.rb, line 14 def classification TAXONOMY_CLASSIFICATION.rand end
code()
click to toggle source
# File lib/ffaker/taxonomy.rb, line 6 def code TAXONOMY_CODE.rand end
lookup(code)
click to toggle source
Use this method if you have a taxonomy code and need to lookup the information about that code
# File lib/ffaker/taxonomy.rb, line 24 def lookup(code) TAXONOMY.select {|t| t.code.eql?(code) }.first end
specialization()
click to toggle source
# File lib/ffaker/taxonomy.rb, line 18 def specialization TAXONOMY_SPECIALIZATION.rand end
type()
click to toggle source
# File lib/ffaker/taxonomy.rb, line 10 def type TAXONOMY_TYPE.rand end