Class: Enums::DistanceUnits

Inherits:
Object
  • Object
show all
Defined in:
lib/enums/distance_units.rb

Overview

Enumerator class for diatnce units.

Class Method Summary collapse

Class Method Details

.centimetersDistanceUnits

Returns DistanceUnits object corresponding to elasticsearch option of ‘cm’.

Returns:

  • (DistanceUnits)

    DistanceUnits object corresponding to elasticsearch option of ‘cm’



# File 'lib/enums/distance_units.rb', line 51

.feetDistanceUnits

Returns DistanceUnits object corresponding to elasticsearch option of ‘ft’.

Returns:

  • (DistanceUnits)

    DistanceUnits object corresponding to elasticsearch option of ‘ft’



# File 'lib/enums/distance_units.rb', line 31

.inchesDistanceUnits

Returns DistanceUnits object corresponding to elasticsearch option of ‘in’.

Returns:

  • (DistanceUnits)

    DistanceUnits object corresponding to elasticsearch option of ‘in’



# File 'lib/enums/distance_units.rb', line 36

.kilometersDistanceUnits

Returns DistanceUnits object corresponding to elasticsearch option of ‘kme’.

Returns:

  • (DistanceUnits)

    DistanceUnits object corresponding to elasticsearch option of ‘kme’



# File 'lib/enums/distance_units.rb', line 41

.metersDistanceUnits

Returns DistanceUnits object corresponding to elasticsearch option of ‘m’.

Returns:

  • (DistanceUnits)

    DistanceUnits object corresponding to elasticsearch option of ‘m’



# File 'lib/enums/distance_units.rb', line 46

.milesDistanceUnits

Returns DistanceUnits object corresponding to elasticsearch option of ‘mi’.

Returns:

  • (DistanceUnits)

    DistanceUnits object corresponding to elasticsearch option of ‘mi’



# File 'lib/enums/distance_units.rb', line 21

.millimetersDistanceUnits

Returns DistanceUnits object corresponding to elasticsearch option of ‘mm’.

Returns:

  • (DistanceUnits)

    DistanceUnits object corresponding to elasticsearch option of ‘mm’



# File 'lib/enums/distance_units.rb', line 56

.nauticalmilesDistanceUnits

Returns DistanceUnits object corresponding to elasticsearch option of ‘nmi’.

Returns:

  • (DistanceUnits)

    DistanceUnits object corresponding to elasticsearch option of ‘nmi’



# File 'lib/enums/distance_units.rb', line 61

.yardsDistanceUnits

Returns DistanceUnits object corresponding to elasticsearch option of ‘yd’.

Returns:

  • (DistanceUnits)

    DistanceUnits object corresponding to elasticsearch option of ‘yd’



# File 'lib/enums/distance_units.rb', line 26