Class: Tcxxxer::Lap
- Inherits:
-
Object
- Object
- Tcxxxer::Lap
- Defined in:
- lib/tcxxxer/lap.rb
Instance Attribute Summary collapse
-
#begin_lat ⇒ Object
Returns the value of attribute begin_lat.
-
#begin_lng ⇒ Object
Returns the value of attribute begin_lng.
-
#distance_meters ⇒ Object
Returns the value of attribute distance_meters.
-
#end_lat ⇒ Object
Returns the value of attribute end_lat.
-
#end_lng ⇒ Object
Returns the value of attribute end_lng.
-
#total_time_seconds ⇒ Object
Returns the value of attribute total_time_seconds.
Instance Method Summary collapse
-
#initialize ⇒ Lap
constructor
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.
Constructor Details
#initialize ⇒ Lap
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_lat ⇒ Object
Returns the value of attribute begin_lat.
6 7 8 |
# File 'lib/tcxxxer/lap.rb', line 6 def begin_lat @begin_lat end |
#begin_lng ⇒ Object
Returns the value of attribute begin_lng.
7 8 9 |
# File 'lib/tcxxxer/lap.rb', line 7 def begin_lng @begin_lng end |
#distance_meters ⇒ Object
Returns the value of attribute distance_meters.
5 6 7 |
# File 'lib/tcxxxer/lap.rb', line 5 def distance_meters @distance_meters end |
#end_lat ⇒ Object
Returns the value of attribute end_lat.
8 9 10 |
# File 'lib/tcxxxer/lap.rb', line 8 def end_lat @end_lat end |
#end_lng ⇒ Object
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_seconds ⇒ Object
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 |