summaryrefslogtreecommitdiff
path: root/recipeBuddy/src/app/DataModels/ingredient.ts
blob: c79b475c0871c1e4602e3a188616d9eb54826803 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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 = name;
		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_;
	}
}