Class: TestProf::TPSProf::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



17
18
19
20
21
22
# File 'lib/test_prof/tps_prof.rb', line 17

def initialize
  @top_count = ENV["TPS_PROF"].to_i
  @top_count = 10 if @top_count == 1
  @threshold = ENV.fetch("TPS_PROF_MIN", 10).to_i
  @reporter = resolve_reporter(ENV["TPS_PROF_FORMAT"])
end

Instance Attribute Details

#reporterObject

Returns the value of attribute reporter.



15
16
17
# File 'lib/test_prof/tps_prof.rb', line 15

def reporter
  @reporter
end

#thresholdObject

Returns the value of attribute threshold.



15
16
17
# File 'lib/test_prof/tps_prof.rb', line 15

def threshold
  @threshold
end

#top_countObject

Returns the value of attribute top_count.



15
16
17
# File 'lib/test_prof/tps_prof.rb', line 15

def top_count
  @top_count
end