Class: PistePal::Trackpoint

Inherits:
Object
  • Object
show all
Defined in:
lib/piste_pal/trackpoint.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#elevationObject

Returns the value of attribute elevation.



3
4
5
# File 'lib/piste_pal/trackpoint.rb', line 3

def elevation
  @elevation
end

#hdopObject

Returns the value of attribute hdop.



3
4
5
# File 'lib/piste_pal/trackpoint.rb', line 3

def hdop
  @hdop
end

#latObject

Returns the value of attribute lat.



3
4
5
# File 'lib/piste_pal/trackpoint.rb', line 3

def lat
  @lat
end

#lonObject

Returns the value of attribute lon.



3
4
5
# File 'lib/piste_pal/trackpoint.rb', line 3

def lon
  @lon
end

#speedObject

Returns the value of attribute speed.



3
4
5
# File 'lib/piste_pal/trackpoint.rb', line 3

def speed
  @speed
end

#timeObject

Returns the value of attribute time.



3
4
5
# File 'lib/piste_pal/trackpoint.rb', line 3

def time
  @time
end

#vdopObject

Returns the value of attribute vdop.



3
4
5
# File 'lib/piste_pal/trackpoint.rb', line 3

def vdop
  @vdop
end