Class: SGS::TrackPoint
- Inherits:
-
Object
- Object
- SGS::TrackPoint
- Defined in:
- lib/sgs/waypoint.rb
Overview
Store an individual track point.
Instance Attribute Summary collapse
-
#location ⇒ Object
Returns the value of attribute location.
-
#time ⇒ Object
Returns the value of attribute time.
Instance Method Summary collapse
-
#initialize(time = nil, location = nil) ⇒ TrackPoint
constructor
A new instance of TrackPoint.
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
#location ⇒ Object
Returns the value of attribute location.
175 176 177 |
# File 'lib/sgs/waypoint.rb', line 175 def location @location end |
#time ⇒ Object
Returns the value of attribute time.
175 176 177 |
# File 'lib/sgs/waypoint.rb', line 175 def time @time end |