Class: Faker::Indian::Food

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

Constant Summary collapse

DISHES =
_data.fetch(:dishes).freeze
RESTAURANTS =
_data.fetch(:restaurants).freeze
CUISINES =
_data.fetch(:cuisines).freeze
STREET_FOOD =
_data.fetch(:street_food).freeze
SWEETS =
_data.fetch(:sweets).freeze

Class Method Summary collapse

Class Method Details

.cuisineObject



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

def cuisine
  CUISINES.sample(random: random)
end

.dishObject



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

def dish
  DISHES.sample(random: random)
end

.restaurant_nameObject



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

def restaurant_name
  RESTAURANTS.sample(random: random)
end

.street_foodObject



28
29
30
# File 'lib/faker/indian/food.rb', line 28

def street_food
  STREET_FOOD.sample(random: random)
end

.sweetObject



32
33
34
# File 'lib/faker/indian/food.rb', line 32

def sweet
  SWEETS.sample(random: random)
end