diff options
| author | Tucker Evans <tuckerevans24@gmail.com> | 2019-12-02 10:54:41 -0500 |
|---|---|---|
| committer | Tucker Evans <tuckerevans24@gmail.com> | 2019-12-02 10:58:11 -0500 |
| commit | 737063651a31b05631fbb3fae5803da5db0ee389 (patch) | |
| tree | ffa520a5415f0a5cfbfffe9ffa15bd6b2f0422ca /recipeBuddy/src/app/DataModels/ingredient.ts | |
| parent | 74855d03f44adf2e77d5d6af38e18e1cfe45e700 (diff) | |
Fix Ingredients as array in recipe
Diffstat (limited to 'recipeBuddy/src/app/DataModels/ingredient.ts')
| -rw-r--r-- | recipeBuddy/src/app/DataModels/ingredient.ts | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/recipeBuddy/src/app/DataModels/ingredient.ts b/recipeBuddy/src/app/DataModels/ingredient.ts new file mode 100644 index 0000000..0ede1d1 --- /dev/null +++ b/recipeBuddy/src/app/DataModels/ingredient.ts @@ -0,0 +1,29 @@ +export class Ingredient { + private name: string; + private amount: number; + private unit: string; + private type_: string; + + public constructor(name: string, amount: number, unit: string, type_: string) { + this.name = names; + this.amount = amount; + this.unit = unit; + this.type_ = type_; + } + + public getName(): string { + return this.name; + } + + public getAmount(): number { + return this.amount; + } + + public getUnit(): string { + return this.unit; + } + + public getType(): string { + return this.type_; + } +} |
