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.



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

Instance Attribute Details

#locationObject

Returns the value of attribute location.



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

def location
  @location
end

#timeObject

Returns the value of attribute time.



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

def time
  @time
end