Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Kelvin

A class that accepts values and converts them accordingly the unit it receives

Hierarchy

  • Kelvin

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Kelvin(currentTemp: number, currentUnit: string): Kelvin
  • Parameters

    • currentTemp: number
    • currentUnit: string

    Returns Kelvin

Properties

currentTemp

currentTemp: number

currentUnit

currentUnit: string

Methods

getCurrentTemperature

  • getCurrentTemperature(): number
  • A method that accepts values and converts them so the current temperature is returned in the right way

    Returns number

    The final converted current temperature

Generated using TypeDoc