diff options
author | schencej <55326070+schencej@users.noreply.github.com> | 2019-12-02 16:46:52 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-02 16:46:52 -0500 |
commit | cafe1b4fd3cc02554f44ffbaa8467d867a6838cb (patch) | |
tree | 3240e099653b60e08b762f814efdc65ea27c9b3b /recipeBuddy/src/app/DataModels/ingredient.ts | |
parent | d854dedd5297aaa7901fc2b2b304c8b160830836 (diff) | |
parent | e3340c8df1892356ecf58116db9e910662554eed (diff) |
Merge pull request #11 from tuckerevans/api_json=recipe_object
Api json and recipe object
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_; + } +} |