Class: Tcxxxer::Lap

Inherits:
Object
  • Object
show all
Defined in:
lib/tcxxxer/lap.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeLap

def initialize(t, d, b_lat, b_lng, e_lat, e_lng)

total_time_seconds =t
distance_meters    = d
begin_lat          = b_lat
begin_lng          = b_lng
end_lat            = e_lat
end_lng            = e_lng

end



21
22
23
# File 'lib/tcxxxer/lap.rb', line 21

def initialize()

end

Instance Attribute Details

#begin_latObject

Returns the value of attribute begin_lat.



6
7
8
# File 'lib/tcxxxer/lap.rb', line 6

def begin_lat
  @begin_lat
end

#begin_lngObject

Returns the value of attribute begin_lng.



7
8
9
# File 'lib/tcxxxer/lap.rb', line 7

def begin_lng
  @begin_lng
end

#distance_metersObject

Returns the value of attribute distance_meters.



5
6
7
# File 'lib/tcxxxer/lap.rb', line 5

def distance_meters
  @distance_meters
end

#end_latObject

Returns the value of attribute end_lat.



8
9
10
# File 'lib/tcxxxer/lap.rb', line 8

def end_lat
  @end_lat
end

#end_lngObject

Returns the value of attribute end_lng.



9
10
11
# File 'lib/tcxxxer/lap.rb', line 9

def end_lng
  @end_lng
end

#total_time_secondsObject

Returns the value of attribute total_time_seconds.



4
5
6
# File 'lib/tcxxxer/lap.rb', line 4

def total_time_seconds
  @total_time_seconds
end