Class: PostRunner::PersonalRecords::Record
- Inherits:
-
Object
- Object
- PostRunner::PersonalRecords::Record
- Defined in:
- lib/postrunner/PersonalRecords.rb
Instance Attribute Summary collapse
-
#distance ⇒ Object
Returns the value of attribute distance.
-
#duration ⇒ Object
Returns the value of attribute duration.
-
#fit_file ⇒ Object
Returns the value of attribute fit_file.
-
#start_time ⇒ Object
Returns the value of attribute start_time.
Instance Method Summary collapse
-
#initialize(distance, duration, start_time, fit_file) ⇒ Record
constructor
A new instance of Record.
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
#distance ⇒ Object
Returns the value of attribute distance.
24 25 26 |
# File 'lib/postrunner/PersonalRecords.rb', line 24 def distance @distance end |
#duration ⇒ Object
Returns the value of attribute duration.
24 25 26 |
# File 'lib/postrunner/PersonalRecords.rb', line 24 def duration @duration end |
#fit_file ⇒ Object
Returns the value of attribute fit_file.
24 25 26 |
# File 'lib/postrunner/PersonalRecords.rb', line 24 def fit_file @fit_file end |
#start_time ⇒ Object
Returns the value of attribute start_time.
24 25 26 |
# File 'lib/postrunner/PersonalRecords.rb', line 24 def start_time @start_time end |