blob: 0ede1d137342d3a696107fcfbe374f048f507402 (
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 = 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_;
}
}
|