class Faker::Food
Public Class Methods
description()
click to toggle source
Retrieves a description about some dish
@return [String]
@example
Faker::Food.description #=> "Breaded fried chicken with waffles. Served with maple syrup."
@faker.version 1.9.0
# File lib/faker/default/food.rb, line 30 def description fetch('food.descriptions') end
dish()
click to toggle source
Retrieves a typical dish from each country.
@return [String]
@example
Faker::Food.dish #=> "Feijoada"
@faker.version 1.8.0
# File lib/faker/default/food.rb, line 17 def dish fetch('food.dish') end
ethnic_category()
click to toggle source
Retrieves ethnic category
@return [String]
@example
Faker::Food.ethnic_category #=> "Indian cuisine"
@faker.version next
# File lib/faker/default/food.rb, line 121 def ethnic_category fetch('food.ethnic_category') end
fruits()
click to toggle source
Retrieves a fruit
@return [String]
@example
Faker::Food.fruits #=> "Papaya"
@faker.version 1.9.0
# File lib/faker/default/food.rb, line 56 def fruits fetch('food.fruits') end
ingredient()
click to toggle source
Retrieves an ingredient
@return [String]
@example
Faker::Food.ingredient #=> "Olives"
@faker.version 1.7.0
# File lib/faker/default/food.rb, line 43 def ingredient fetch('food.ingredients') end
measurement()
click to toggle source
Retrieves cooking measures
@return [String]
@example
Faker::Food.measurement #=> "1/3"
@faker.version 1.7.0
# File lib/faker/default/food.rb, line 95 def measurement "#{fetch('food.measurement_sizes')} #{fetch('food.measurements')}" end
metric_measurement()
click to toggle source
Retrieves metric mesurements
@return [String]
@example
Faker::Food.metric_measurement #=> "centiliter"
@faker.version 1.8.3
# File lib/faker/default/food.rb, line 108 def metric_measurement fetch('food.metric_measurements') end
spice()
click to toggle source
Retrieves some random spice
@return [String]
@example
Faker::Food.spice #=> "Garlic Chips"
@faker.version 1.7.0
# File lib/faker/default/food.rb, line 82 def spice fetch('food.spices') end
vegetables()
click to toggle source
Retrieves a vegetable
@return [String]
@example
Faker::Food.vegetables #=> "Broccolini"
@faker.version 1.9.0
# File lib/faker/default/food.rb, line 69 def vegetables fetch('food.vegetables') end