Class: SGS::TrackPoint

Inherits:
Object
  • Object
show all
Defined in:
lib/sgs/waypoint.rb

Overview

Store an individual track point.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of TrackPoint.



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

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

Instance Attribute Details

#locationObject

Returns the value of attribute location.



175
176
177
# File 'lib/sgs/waypoint.rb', line 175

def location
  @location
end

#timeObject

Returns the value of attribute time.



175
176
177
# File 'lib/sgs/waypoint.rb', line 175

def time
  @time
end