# Usage

This is a base object that allows the user to create a Datapoint.

## withAverage(average)


Set the average attribute

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **average** | `string` | ❌ | optionals field |

### Retorna

{{% notice tip %}}
**Tipo:** `Usage`
<br>

{{% /notice %}}

---
## withCurrent(current)


Set the current attribute

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **current** | `string` | ❌ | optionals field |

### Retorna

{{% notice tip %}}
**Tipo:** `Usage`
<br>

{{% /notice %}}

---
## withMaximum(maximum)


Set the maximum  attribute

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **maximum** | `string` | ❌ | optionals field |

### Retorna

{{% notice tip %}}
**Tipo:** `Usage`
<br>

{{% /notice %}}

---
## withMinimum(minimum)


Set the minimum  attribute

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **minimum** | `string` | ❌ | optionals field |

### Retorna

{{% notice tip %}}
**Tipo:** `Usage`
<br>

{{% /notice %}}

---
## withUsageUnit(unit)


Set the unit attribute

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **unit** | `string` | ❌ | optionals field |

### Retorna

{{% notice tip %}}
**Tipo:** `Usage`
<br>

{{% /notice %}}

---

