Usage

Usage

Usage Objects

class Usage()

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

constructor
function constructor()

composeElement
function composeElement() -> '*'

Returns:

  • *

withAverage
function withAverage(average: string) -> 'Usage'

Set the average attribute

Arguments:

  • average string - optionals field

Returns:

  • Usage

withCurrent
function withCurrent(current: string) -> 'Usage'

Set the current attribute

Arguments:

  • current string - optionals field

Returns:

  • Usage

withMaximum
function withMaximum(maximum: string) -> 'Usage'

Set the maximum attribute

Arguments:

  • maximum string - optionals field

Returns:

  • Usage

withMinimum
function withMinimum(minimum: string) -> 'Usage'

Set the minimum attribute

Arguments:

  • minimum string - optionals field

Returns:

  • Usage

withUsageUnit
function withUsageUnit(unit: string) -> 'Usage'

Set the unit attribute

Arguments:

  • unit string - optionals field

Returns:

  • Usage