Class: Faker::Food

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

Constant Summary

Constants inherited from Base

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

Class Method Summary collapse

Methods inherited from Base

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

Class Method Details

.dishObject


4
5
6
# File 'lib/faker/food.rb', line 4

def dish
  fetch('food.dish')
end

.ingredientObject


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

def ingredient
  fetch('food.ingredients')
end

.measurementObject


16
17
18
# File 'lib/faker/food.rb', line 16

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

.metric_measurementObject


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

def metric_measurement
  fetch('food.metric_measurements')
end

.spiceObject


12
13
14
# File 'lib/faker/food.rb', line 12

def spice
  fetch('food.spices')
end