drinks#

Package Contents#

Classes#

HotBeverage

Abstract class to prepare hot beverages

Coffee

Prepare and serve Coffees

Tea

Prepare and serve Tea

class drinks.HotBeverage#

Bases: abc.ABC

Inheritance diagram of drinks.HotBeverage

Abstract class to prepare hot beverages

Parámetros:

temperature (float, optional) – Temperature at which the hot beverage is prepared.

temperature: float = 100.0#

Temperature at which the hot beverage is prepared.

prepare_recipe()#

Prepares the hot beverage

boil_water()#

Boils water

pour()#

Pours beverage into cup

class drinks.Coffee#

Bases: drinks.hot_beverage.HotBeverage

Inheritance diagram of drinks.Coffee

Prepare and serve Coffees

Ver también

HotBeverage

brew()#

Drips coffee with water at temperature

add_extras()#

Add sugar and milk

class drinks.Tea#

Bases: drinks.hot_beverage.HotBeverage

Inheritance diagram of drinks.Tea

Prepare and serve Tea

Ver también

HotBeverage

brew()#

Steeps the tea at temperature

add_extras()#

Add lemon to tea