Class: Quicky::TimeResult
- Inherits:
-
Object
- Object
- Quicky::TimeResult
- Defined in:
- lib/quicky/timer.rb
Instance Attribute Summary collapse
-
#duration ⇒ Object
Returns the value of attribute duration.
Instance Method Summary collapse
-
#initialize(duration) ⇒ TimeResult
constructor
A new instance of TimeResult.
Constructor Details
#initialize(duration) ⇒ TimeResult
Returns a new instance of TimeResult.
121 122 123 |
# File 'lib/quicky/timer.rb', line 121 def initialize(duration) @duration = duration end |
Instance Attribute Details
#duration ⇒ Object
Returns the value of attribute duration.
119 120 121 |
# File 'lib/quicky/timer.rb', line 119 def duration @duration end |