Class: PistePal::Trackpoint
- Inherits:
-
Object
- Object
- PistePal::Trackpoint
- Defined in:
- lib/piste_pal/trackpoint.rb
Instance Attribute Summary collapse
-
#elevation ⇒ Object
Returns the value of attribute elevation.
-
#hdop ⇒ Object
Returns the value of attribute hdop.
-
#lat ⇒ Object
Returns the value of attribute lat.
-
#lon ⇒ Object
Returns the value of attribute lon.
-
#speed ⇒ Object
Returns the value of attribute speed.
-
#time ⇒ Object
Returns the value of attribute time.
-
#vdop ⇒ Object
Returns the value of attribute vdop.
Instance Method Summary collapse
-
#initialize(lat: nil, lon: nil, elevation: nil, time: nil, hdop: nil, vdop: nil, speed: nil) ⇒ Trackpoint
constructor
A new instance of Trackpoint.
Constructor Details
#initialize(lat: nil, lon: nil, elevation: nil, time: nil, hdop: nil, vdop: nil, speed: nil) ⇒ Trackpoint
Returns a new instance of Trackpoint.
5 6 7 8 9 10 11 12 13 |
# File 'lib/piste_pal/trackpoint.rb', line 5 def initialize(lat: nil, lon: nil, elevation: nil, time: nil, hdop: nil, vdop: nil, speed: nil) @lat = lat @lon = lon @elevation = elevation @time = time @hdop = hdop @vdop = vdop @speed = speed end |
Instance Attribute Details
#elevation ⇒ Object
Returns the value of attribute elevation.
3 4 5 |
# File 'lib/piste_pal/trackpoint.rb', line 3 def elevation @elevation end |
#hdop ⇒ Object
Returns the value of attribute hdop.
3 4 5 |
# File 'lib/piste_pal/trackpoint.rb', line 3 def hdop @hdop end |
#lat ⇒ Object
Returns the value of attribute lat.
3 4 5 |
# File 'lib/piste_pal/trackpoint.rb', line 3 def lat @lat end |
#lon ⇒ Object
Returns the value of attribute lon.
3 4 5 |
# File 'lib/piste_pal/trackpoint.rb', line 3 def lon @lon end |
#speed ⇒ Object
Returns the value of attribute speed.
3 4 5 |
# File 'lib/piste_pal/trackpoint.rb', line 3 def speed @speed end |
#time ⇒ Object
Returns the value of attribute time.
3 4 5 |
# File 'lib/piste_pal/trackpoint.rb', line 3 def time @time end |
#vdop ⇒ Object
Returns the value of attribute vdop.
3 4 5 |
# File 'lib/piste_pal/trackpoint.rb', line 3 def vdop @vdop end |