Class: PostRunner::PersonalRecords::Record

Inherits:
Object
  • Object
show all
Defined in:
lib/postrunner/PersonalRecords.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(distance, duration, start_time, fit_file) ⇒ Record

Returns a new instance of Record.



26
27
28
29
30
31
# File 'lib/postrunner/PersonalRecords.rb', line 26

def initialize(distance, duration, start_time, fit_file)
  @distance = distance
  @duration = duration
  @start_time = start_time
  @fit_file = fit_file
end

Instance Attribute Details

#distanceObject

Returns the value of attribute distance.



24
25
26
# File 'lib/postrunner/PersonalRecords.rb', line 24

def distance
  @distance
end

#durationObject

Returns the value of attribute duration.



24
25
26
# File 'lib/postrunner/PersonalRecords.rb', line 24

def duration
  @duration
end

#fit_fileObject

Returns the value of attribute fit_file.



24
25
26
# File 'lib/postrunner/PersonalRecords.rb', line 24

def fit_file
  @fit_file
end

#start_timeObject

Returns the value of attribute start_time.



24
25
26
# File 'lib/postrunner/PersonalRecords.rb', line 24

def start_time
  @start_time
end