class Natour::GPSTrackPoint

Attributes

elevation[R]
latitude[R]
longitude[R]
time[R]

Public Class Methods

new(latitude, longitude, elevation, time) click to toggle source
# File lib/natour/gps_track_point.rb, line 8
def initialize(latitude, longitude, elevation, time)
  @latitude = latitude
  @longitude = longitude
  @elevation = elevation
  @time = time
end

Public Instance Methods

<=>(other) click to toggle source
# File lib/natour/gps_track_point.rb, line 17
def <=>(other)
  [@latitude, @longitude, @elevation, @time] <=>
    [other.latitude, other.longitude, other.elevation, other.time]
end
hash() click to toggle source
# File lib/natour/gps_track_point.rb, line 22
def hash
  [@latitude, @longitude, @elevation, @time].hash
end