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.



12
13
14
15
16
# File 'lib/test_prof/factory_doctor.rb', line 12

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.



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

def count
  @count
end

#queries_countObject (readonly)

Returns the value of attribute queries_count.



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

def queries_count
  @queries_count
end

#timeObject (readonly)

Returns the value of attribute time.



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

def time
  @time
end

Instance Method Details

#bad?Boolean

Returns:

  • (Boolean)


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

def bad?
  count.positive? && queries_count.zero?
end