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
- MEALS =
data.fetch(:meals).freeze
- BEVERAGES =
data.fetch(:beverages).freeze
- SPICE_LEVELS =
data.fetch(:spice_levels).freeze
Class Method Summary collapse
- .beverage ⇒ Object
- .combo ⇒ Object
- .cuisine ⇒ Object
- .dish ⇒ Object
- .meal ⇒ Object
- .restaurant_name ⇒ Object
- .spice_level ⇒ Object
- .street_food ⇒ Object
- .sweet ⇒ Object
Class Method Details
.beverage ⇒ Object
44 45 46 |
# File 'lib/faker/indian/food.rb', line 44 def beverage BEVERAGES.sample(random: random) end |
.combo ⇒ Object
48 49 50 |
# File 'lib/faker/indian/food.rb', line 48 def combo "#{dish} with #{beverage}" end |
.cuisine ⇒ Object
28 29 30 |
# File 'lib/faker/indian/food.rb', line 28 def cuisine CUISINES.sample(random: random) end |
.dish ⇒ Object
20 21 22 |
# File 'lib/faker/indian/food.rb', line 20 def dish DISHES.sample(random: random) end |
.meal ⇒ Object
40 41 42 |
# File 'lib/faker/indian/food.rb', line 40 def meal MEALS.sample(random: random) end |
.restaurant_name ⇒ Object
24 25 26 |
# File 'lib/faker/indian/food.rb', line 24 def restaurant_name RESTAURANTS.sample(random: random) end |
.spice_level ⇒ Object
52 53 54 |
# File 'lib/faker/indian/food.rb', line 52 def spice_level SPICE_LEVELS.sample(random: random) end |
.street_food ⇒ Object
32 33 34 |
# File 'lib/faker/indian/food.rb', line 32 def street_food STREET_FOOD.sample(random: random) end |
.sweet ⇒ Object
36 37 38 |
# File 'lib/faker/indian/food.rb', line 36 def sweet SWEETS.sample(random: random) end |