new Ingredient(ingredient_config)
The arguments to operations.
Parameters:
| Name | Type | Description |
|---|---|---|
ingredient_config |
Object |
- Copyright:
-
- Crown Copyright 2016
- License:
-
- Apache-2.0
- Source:
Methods
-
<private> _parse_config(ingredient_config)
-
Reads and parses the given config.
Parameters:
Name Type Description ingredient_configObject - 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* typestring The name of the data type.
- Source:
CyberChef