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.
14 15 16 17 18 19 |
# File 'lib/postrunner/PersonalRecords.rb', line 14 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.
12 13 14 |
# File 'lib/postrunner/PersonalRecords.rb', line 12 def distance @distance end |
#duration ⇒ Object
Returns the value of attribute duration.
12 13 14 |
# File 'lib/postrunner/PersonalRecords.rb', line 12 def duration @duration end |
#fit_file ⇒ Object
Returns the value of attribute fit_file.
12 13 14 |
# File 'lib/postrunner/PersonalRecords.rb', line 12 def fit_file @fit_file end |
#start_time ⇒ Object
Returns the value of attribute start_time.
12 13 14 |
# File 'lib/postrunner/PersonalRecords.rb', line 12 def start_time @start_time end |