Class: Quicky::TimeResult

Inherits:
Object
  • Object
show all
Defined in:
lib/quicky/timer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#durationObject

Returns the value of attribute duration.



119
120
121
# File 'lib/quicky/timer.rb', line 119

def duration
  @duration
end