require 'faker/food'

module Faker
  class Food
    ICONS = [
      'apple',
      'asparagus',
      'bacon',
      'banana',
      'banana_split',
      'bar',
      'beer',
      'beer_bottle',
      'beer_can',
      'beer_glass',
      'beer_keg',
      'beer_pump',
      'beet',
      'bento',
      'big_green_egg',
      'birthday_cake',
      'bottle_of_water',
      'bread',
      'cabbage',
      'cafe',
      'caloric_energy',
      'carbohydrates',
      'carrot',
      'celery',
      'charcoal',
      'cheese',
      'cherry',
      'cinnamon_roll',
      'cocktail',
      'coffee_pot',
      'coffee_to_go',
      'cooker',
      'cooker_hood',
      'cookies',
      'cooking_pot',
      'corkscrew',
      'corn',
      'cucumber',
      'cup',
      'cupcake',
      'deliver_food',
      'dim_sum',
      'dolmades',
      'doughnut',
      'eggplant',
      'eggs',
      'espresso_cup',
      'fiber',
      'fish_food',
      'food_and_wine',
      'fork',
      'french_fries',
      'french_press',
      'fridge',
      'garlic',
      'gravy_boat',
      'grill',
      'hamburger',
      'honey',
      'hot_chocolate',
      'hot_dog',
      'ice_cream_bowl',
      'ice_cream_cone',
      'ice_cream_scoop',
      'ingredients',
      'ingredients_list',
      'kebab',
      'kiwi',
      'knife',
      'kohlrabi',
      'ladle',
      'leek',
      'lettuce',
      'lipids',
      'low_salt',
      'macaron',
      'meal',
      'melon',
      'microwave',
      'milk',
      'milk_bottle',
      'mixer',
      'mushroom',
      'nachos',
      'natural_food',
      'no_GMO',
      'no_apple',
      'no_celery',
      'no_crustaceans',
      'no_eggs',
      'no_fish',
      'no_fructose',
      'no_gluten',
      'no_lupines',
      'no_milk',
      'no_mustard',
      'no_nuts',
      'no_peanut',
      'no_sesame',
      'no_shellfish',
      'no_soy',
      'no_sugar',
      'no_sugar2',
      'nonya_kueh',
      'noodles',
      'olive',
      'olive_oil',
      'organic_food',
      'pancake',
      'pastry_bag',
      'pastry_spatula',
      'peach',
      'peas',
      'pepper_shaker',
      'pie',
      'pizza',
      'plum',
      'porridge',
      'protein',
      'quesadilla',
      'rack_of_lamb',
      'radish',
      'raspberry',
      'restaurant_pickup',
      'rice_bowl',
      'sack_of_flour',
      'salt_shaker',
      'sauce',
      'sesame',
      'shellfish',
      'soda_bottle',
      'sodium',
      'spaghetti',
      'spoon',
      'spoon_of_sugar',
      'steak',
      'sugar',
      'sugar_cube',
      'sugar_cubes',
      'sweet_potato',
      'sweetener',
      'taco',
      'tapas',
      'tea',
      'tea_cup',
      'teapot',
      'tin_can',
      'vegan_food',
      'vegan_symbol',
      'vegetarian_food',
      'waiter',
      'weber',
      'wine_bottle',
      'wine_glass',
      'wooden_beer_keg',
      'wrap'
    ].freeze

    def self.icon(size = 48)
      "https://maxcdn.icons8.com/Color/PNG/#{size}/Food/#{ICONS.sample}-#{size}.png"
    end

    def self.name
      ICONS.sample.humanize
    end
  end
end
