Skip to content

Instantly share code, notes, and snippets.

# typed: false
# frozen_string_literal: true
# Note: This is loaded *ludicrously* early in the boot process: please don't
# introduce other dependencies here.
# ===
# Okay so here's the deal. When we compile a bundle of ruby code via
# `bundlerEnv`, we install all the gems individually into a bunch of separate
@Apelsinka223
Apelsinka223 / task_for_gen_server_use.md
Last active December 25, 2020 17:06
Задачка на использование GenServer

Онлайн магазин

Необходимо создать API для онлайн магазина. Для покупки необходимо создать корзину, добавить туда товары и затем купить все товары из корзины. API подразумевает возможности просматривать список всех продуктов, список корзин.
Ожидается использование GenServer для хранения данных корзин.

Методы API:

1. create_item