Constructor
new DrinkRecipe(data)
Initializes a drink recipe object with a scraped JSON from the API
Performs regex validation and speculative parsing.
Parameters:
Name | Type | Description |
---|---|---|
data |
object | JSON data from API |
- Source:
Methods
getIngInfoThenOutput(i)
Queries the API for information about an ingredient, then outputs it to be caught and recorded (OS level)
Parameters:
Name | Type | Default | Description |
---|---|---|---|
i |
number | 0 | index of ingredient. Defaults to 0 |
- Source: