Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
FuelRange

FuelRange Class Reference

Constructors

Instance Methods

Constructors

new FuelRange(parameters)

Initalizes an instance of FuelRange.

Instance Methods

fuelRange.getRange() ⇒ Number

Get the Range

Kind: Instance method of FuelRange
Returns: Number - the KEY_RANGE value

fuelRange.getType() ⇒ FuelType

Get the Type

Kind: Instance method of FuelRange
Returns: FuelType - the KEY_TYPE value

fuelRange.setRange(range) ⇒ FuelRange

Set the Range

Kind: Instance method of FuelRange
Returns: FuelRange - The class instance for method chaining.

ParamTypeDescription
range Number The estimate range in KM the vehicle can travel based on fuel level and consumption. - The desired Range.

fuelRange.setType(type) ⇒ FuelRange

Set the Type

Kind: Instance method of FuelRange
Returns: FuelRange - The class instance for method chaining.

ParamTypeDescription
type FuelType The desired Type.
View on GitHub.com
Previous Section Next Section