Class: TestProf::TPSProf::Configuration
- Inherits:
-
Object
- Object
- TestProf::TPSProf::Configuration
- Defined in:
- lib/test_prof/tps_prof.rb
Instance Attribute Summary collapse
-
#reporter ⇒ Object
Returns the value of attribute reporter.
-
#threshold ⇒ Object
Returns the value of attribute threshold.
-
#top_count ⇒ Object
Returns the value of attribute top_count.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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
#reporter ⇒ Object
Returns the value of attribute reporter.
15 16 17 |
# File 'lib/test_prof/tps_prof.rb', line 15 def reporter @reporter end |
#threshold ⇒ Object
Returns the value of attribute threshold.
15 16 17 |
# File 'lib/test_prof/tps_prof.rb', line 15 def threshold @threshold end |
#top_count ⇒ Object
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 |