markhatchell/JS-Electrical-Engineering-Equations

View on GitHub
src/objects/BatteryRuntime.js

Summary

Maintainability
A
0 mins
Test Coverage

/**
 * Battery runtime object
 */
class BatteryRuntime {

  /**
   *
   * @param {number} totalMin
   * @param {number} totalHours
   * @param {number} totalSeconds
   * @return {BatteryRuntime}
   */

  constructor(totalMin = 0, totalHours = 0, totalSeconds = 0) {
    /**
     * @type {number}
     */
    this.totalMin = totalMin;
    /**
     * @type {number}
     */
    this.totalHours = totalHours;
    /**
     * @type {number}
     */
    this.totalSeconds = totalSeconds;
  }
}

export default BatteryRuntime