Class: TestProf::FactoryDoctor::Result
- Inherits:
-
Object
- Object
- TestProf::FactoryDoctor::Result
- Defined in:
- lib/test_prof/factory_doctor.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#count ⇒ Object
readonly
Returns the value of attribute count.
-
#queries_count ⇒ Object
readonly
Returns the value of attribute queries_count.
-
#time ⇒ Object
readonly
Returns the value of attribute time.
Instance Method Summary collapse
- #bad? ⇒ Boolean
-
#initialize(count, time, queries_count) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(count, time, queries_count) ⇒ Result
Returns a new instance of Result.
13 14 15 16 17 |
# File 'lib/test_prof/factory_doctor.rb', line 13 def initialize(count, time, queries_count) @count = count @time = time @queries_count = queries_count end |
Instance Attribute Details
#count ⇒ Object (readonly)
Returns the value of attribute count.
11 12 13 |
# File 'lib/test_prof/factory_doctor.rb', line 11 def count @count end |
#queries_count ⇒ Object (readonly)
Returns the value of attribute queries_count.
11 12 13 |
# File 'lib/test_prof/factory_doctor.rb', line 11 def queries_count @queries_count end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
11 12 13 |
# File 'lib/test_prof/factory_doctor.rb', line 11 def time @time end |
Instance Method Details
#bad? ⇒ Boolean
19 20 21 |
# File 'lib/test_prof/factory_doctor.rb', line 19 def bad? count > 0 && queries_count.zero? end |