Class: TestProf::FactoryDoctor::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/test_prof/factory_doctor.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#countObject (readonly)

Returns the value of attribute count.



11
12
13
# File 'lib/test_prof/factory_doctor.rb', line 11

def count
  @count
end

#queries_countObject (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

#timeObject (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

Returns:

  • (Boolean)


19
20
21
# File 'lib/test_prof/factory_doctor.rb', line 19

def bad?
  count > 0 && queries_count.zero?
end