Method: SGS::TrackPoint#initialize

Defined in:
lib/sgs/waypoint.rb

#initialize(time = nil, location = nil) ⇒ TrackPoint

Returns a new instance of TrackPoint.



178
179
180
181
# File 'lib/sgs/waypoint.rb', line 178

def initialize(time = nil, location = nil)
  @time = time ? time.clone : nil
  @location = location ? location.clone : nil
end