# Ingredient

### Model Attributes

| Attr        | Required | Type     | Default  | Description                                        |
| ----------- | :------: | -------- | -------- | -------------------------------------------------- |
| measurement |    ✅    | `string` | `"each"` | The Measurement type                               |
| name        |    ✅    | `string` |          | The Name of the ingredient                         |
| note        |          | `string` |          | Additional note about the ingredient               |
| quanity     |    ✅    | `number` |          | Amount of the ingredient (in provided measurement) |

### Model Methods

| Name              | Returns   | Description                                        |
| ----------------- | --------- | -------------------------------------------------- |
| isVolume()        | `boolean` | Is the ingredient spedified as a volume            |
| isWeight()        | `boolean` | Is the ingredient spedified as a weight            |
| isMetric()        | `boolean` | Is the ingredient specified in metric              |
| isImperial()      | `boolean` | `undefined`                                        | Is the ingredient specified in imperial |
| convertToMetric() | `string`  | Additional note about the ingredient               |
| quanity           | `number`  | Amount of the ingredient (in provided measurement) |
