Class: Gruf::Timer::Result
- Inherits:
-
Object
- Object
- Gruf::Timer::Result
- Defined in:
- lib/gruf/timer.rb
Overview
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
-
#time ⇒ Object
readonly
Returns the value of attribute time.
Instance Method Summary collapse
-
#initialize(result, time) ⇒ Result
constructor
Initialize the result object.
-
#success? ⇒ Boolean
Was this result a successful result?.
Constructor Details
#initialize(result, time) ⇒ Result
Initialize the result object
49 50 51 52 |
# File 'lib/gruf/timer.rb', line 49 def initialize(result, time) @result = result @time = time.to_f end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
38 39 40 |
# File 'lib/gruf/timer.rb', line 38 def result @result end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
41 42 43 |
# File 'lib/gruf/timer.rb', line 41 def time @time end |