class EarthTools::Result::Height
The height result.
Public Instance Methods
feet()
click to toggle source
The height above sea level in feet See {en.wikipedia.org/wiki/Foot_(unit)}. @return [float] the height above sea level in feet
# File lib/earth_tools/result/height.rb, line 33 def feet @data['feet'].to_f end
height()
click to toggle source
Returns height based on unit requested in configuration @return [float]
# File lib/earth_tools/result/height.rb, line 13 def height if EarthTools::Configuration.units == :metric meters else feet end end
meters()
click to toggle source
The height above sea level in meters See {en.wikipedia.org/wiki/Meter}. @return [float] the height above sea level in meters
# File lib/earth_tools/result/height.rb, line 25 def meters @data['meters'].to_f end