Class: Faker::Indian::Food
- Inherits:
-
Object
- Object
- Faker::Indian::Food
- 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
.cuisine ⇒ Object
24 25 26 |
# File 'lib/faker/indian/food.rb', line 24 def cuisine CUISINES.sample(random: random) end |
.dish ⇒ Object
16 17 18 |
# File 'lib/faker/indian/food.rb', line 16 def dish DISHES.sample(random: random) end |
.restaurant_name ⇒ Object
20 21 22 |
# File 'lib/faker/indian/food.rb', line 20 def restaurant_name RESTAURANTS.sample(random: random) end |
.street_food ⇒ Object
28 29 30 |
# File 'lib/faker/indian/food.rb', line 28 def street_food STREET_FOOD.sample(random: random) end |
.sweet ⇒ Object
32 33 34 |
# File 'lib/faker/indian/food.rb', line 32 def sweet SWEETS.sample(random: random) end |