Storage

Storage

Storage Objects

class Storage()

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

constructor
function constructor()

composeElement
function composeElement() -> '*'

Returns:

  • *

withTotal
function withTotal(total: string) -> 'Usage'

Set the total attribute

Arguments:

  • total string - optionals field

Returns:

  • Usage

withUnit
function withUnit(unit: string) -> 'Storage'

Set the unit attribute

Arguments:

  • unit string - optionals field

Returns:

  • Storage