Class: PostRunner::PersonalRecords::ActivityResult
- Inherits:
-
Object
- Object
- PostRunner::PersonalRecords::ActivityResult
- Defined in:
- lib/postrunner/PersonalRecords.rb
Instance Attribute Summary collapse
-
#activity ⇒ Object
readonly
Returns the value of attribute activity.
-
#distance ⇒ Object
readonly
Returns the value of attribute distance.
-
#duration ⇒ Object
readonly
Returns the value of attribute duration.
-
#sport ⇒ Object
readonly
Returns the value of attribute sport.
-
#start_time ⇒ Object
readonly
Returns the value of attribute start_time.
Instance Method Summary collapse
-
#initialize(activity, sport, distance, duration, start_time) ⇒ ActivityResult
constructor
A new instance of ActivityResult.
Constructor Details
#initialize(activity, sport, distance, duration, start_time) ⇒ ActivityResult
Returns a new instance of ActivityResult.
81 82 83 84 85 86 87 |
# File 'lib/postrunner/PersonalRecords.rb', line 81 def initialize(activity, sport, distance, duration, start_time) @activity = activity @sport = sport @distance = distance @duration = duration @start_time = start_time end |
Instance Attribute Details
#activity ⇒ Object (readonly)
Returns the value of attribute activity.
79 80 81 |
# File 'lib/postrunner/PersonalRecords.rb', line 79 def activity @activity end |
#distance ⇒ Object (readonly)
Returns the value of attribute distance.
79 80 81 |
# File 'lib/postrunner/PersonalRecords.rb', line 79 def distance @distance end |
#duration ⇒ Object (readonly)
Returns the value of attribute duration.
79 80 81 |
# File 'lib/postrunner/PersonalRecords.rb', line 79 def duration @duration end |
#sport ⇒ Object (readonly)
Returns the value of attribute sport.
79 80 81 |
# File 'lib/postrunner/PersonalRecords.rb', line 79 def sport @sport end |
#start_time ⇒ Object (readonly)
Returns the value of attribute start_time.
79 80 81 |
# File 'lib/postrunner/PersonalRecords.rb', line 79 def start_time @start_time end |