Class: Report

Report

Represents the report that we are generating


new Report(notes, totalLabel [, timestamp])

Creates an instance of Report.

Parameters:
Name Type Argument Default Description
notes string
totalLabel string
timestamp any <optional>
Date.now()
Source:

Methods


calcPercentOf(path, totalRef)

Parameters:
Name Type Description
path string
totalRef string
Source:
Returns:

this


section(name)

Parameters:
Name Type Description
name string
Source:
Returns:

a new Section under that name


setTotal(value)

Parameters:
Name Type Description
value any
Source:

toJSON()

Source:
Returns:

internal report