Class: Currency

Currency

new tart.Currency()

Tart Currency class for defining prefix, suffix, separator of tart.Money object.

Members

prefix

Prefix Value of Currency.

separator

Separator Value of Currency.

suffix

Suffix Value of Currency.

Methods

convert(money){string}

Converts Money to currency type.

Name Type Description
money tart.Money

Retrieves money object from tart.Money.

Returns:
Type Description
string Returns Money with currency type.

getType(){string}

Gets Currency Type. Like TL, USD etc.

Returns:
Type Description
string Returns currency Type.