Module: recipeCard

Methods

(inner) getCalories(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 calories
Source:
Returns:
If found, returns the calories
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
Source:
Returns:
If found, returns the URL of the image as a string, otherwise null
Type
String

(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 recipe title
Source:
Returns:
If found, returns the recipe title
Type
String