Methods
(inner) getCalories(data) → {Number}
Extract the calories of the recipe from the given recipe JSON object
Parameters:
| Name | Type | Description |
|---|---|---|
data |
Object | Raw recipe JSON to find the calories of |
Returns:
If found, returns the calories of the recipe
- Type
- Number
(inner) getDescription(data) → {String}
Extract the description of the recipe from the given recipe schema JSON obejct
Parameters:
| Name | Type | Description |
|---|---|---|
data |
Object | Raw recipe JSON to find the image of |
Returns:
If found, returns the recipe description
- Type
- String
(inner) getImage(data) → {String}
Extract a usable image from the given recipe schema JSON object
Parameters:
| Name | Type | Description |
|---|---|---|
data |
Object | Raw recipe JSON to find the image of |
Returns:
If found, returns the URL of the image as a string, otherwise null
- Type
- String
(inner) getIngredients(data) → {Array}
Extract the ingredients of the recipe from the given recipe schema JSON obejct
Parameters:
| Name | Type | Description |
|---|---|---|
data |
Object | Raw recipe JSON to find the image of |
Returns:
If found, returns the recipe ingredients
- Type
- Array
(inner) getInstructions(data) → {Array}
Extract the instructions of the recipe from the given recipe schema JSON object
Parameters:
| Name | Type | Description |
|---|---|---|
data |
Object | Raw recipe JSON to find the instructions of |
Returns:
If found, returns the recipe instructions
- Type
- Array
(inner) getTitle(data) → {String}
Extract the title of the recipe from the given recipe schema JSON obejct
Parameters:
| Name | Type | Description |
|---|---|---|
data |
Object | Raw recipe JSON to find the image of |
Returns:
If found, returns the recipe title
- Type
- String
(inner) getUrl(data) → {String}
Extract the url of the recipe from the given recipe schema JSON obejct
Parameters:
| Name | Type | Description |
|---|---|---|
data |
Object | Raw recipe JSON to find the url of |
Returns:
If found, returns the url of the recipe
- Type
- String