Class: Ingredient

Ingredient


new Ingredient(ingredient_config)

The arguments to operations.

Parameters:
Name Type Description
ingredient_config Object
Author:
  • <p>n1474335 [n1474335@gmail.com]</p>
License:
  • Apache-2.0
Source:

Methods


<private> _parse_config(ingredient_config)

Reads and parses the given config.

Parameters:
Name Type Description
ingredient_config Object
Source:

get_config()

Returns the value of the Ingredient as it should be displayed in a recipe config.

Source:
Returns:
Type
*

set_value(value)

Sets the value of the Ingredient.

Parameters:
Name Type Description
value *
Source:

<static> prepare(data, type)

Most values will be strings when they are entered. This function converts them to the correct
type.

Parameters:
Name Type Description
data *
type string

The name of the data type.

Source: