Class: Faker::Food

Inherits:
Base
  • Object
show all
Defined in:
lib/faker/default/food.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

.descriptionObject

Retrieves a description about some dish


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

def description
  fetch('food.descriptions')
end

.dishObject

Retrieves a typical dish from each country


9
10
11
# File 'lib/faker/default/food.rb', line 9

def dish
  fetch('food.dish')
end

.fruitsObject

Retrieves a fruit


24
25
26
# File 'lib/faker/default/food.rb', line 24

def fruits
  fetch('food.fruits')
end

.ingredientObject

Retrieves an ingredient


19
20
21
# File 'lib/faker/default/food.rb', line 19

def ingredient
  fetch('food.ingredients')
end

.measurementObject

Retrieves cooking measures


39
40
41
# File 'lib/faker/default/food.rb', line 39

def measurement
  fetch('food.measurement_sizes') + ' ' + fetch('food.measurements')
end

.metric_measurementObject

Retrieves metric mesurements


44
45
46
# File 'lib/faker/default/food.rb', line 44

def metric_measurement
  fetch('food.metric_measurements')
end

.spiceObject

Retrieves some random spice


34
35
36
# File 'lib/faker/default/food.rb', line 34

def spice
  fetch('food.spices')
end

.vegetablesObject

Retrieves a vegetable


29
30
31
# File 'lib/faker/default/food.rb', line 29

def vegetables
  fetch('food.vegetables')
end