Home Manual Reference Source Test Repository
public class | source

Storage

Extends:

Usage → Storage

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

Constructor Summary

Public Constructor
public

Method Summary

Public Methods
public
public

Set the total attribute

public

Set the unit attribute

Inherited Summary

From class Usage
public
public

withAverage(average: string): Usage

Set the average attribute

public

withCurrent(current: string): Usage

Set the current attribute

public

withMaximum(maximum: string): Usage

Set the maximum attribute

public

withMinimum(minimum: string): Usage

Set the minimum attribute

public

Set the unit attribute

Public Constructors

public constructor() source

Override:

Usage#constructor

Public Methods

public composeElement(): * source

Override:

Usage#composeElement

Return:

*

public withTotal(total: string): Usage source

Set the total attribute

Params:

NameTypeAttributeDescription
total string

optionals field

Return:

Usage

public withUnit(unit: string): Storage source

Set the unit attribute

Params:

NameTypeAttributeDescription
unit string

optionals field

Return:

Storage