Class: BuilderApm::Configuration
- Inherits:
-
Object
- Object
- BuilderApm::Configuration
- Defined in:
- lib/builder_apm/configuration.rb
Instance Attribute Summary collapse
-
#enable_active_record_profiler ⇒ Object
Returns the value of attribute enable_active_record_profiler.
-
#enable_controller_profiler ⇒ Object
Returns the value of attribute enable_controller_profiler.
-
#enable_methods_profiler ⇒ Object
Returns the value of attribute enable_methods_profiler.
-
#enable_n_plus_one_profiler ⇒ Object
Returns the value of attribute enable_n_plus_one_profiler.
-
#redis_url ⇒ Object
Returns the value of attribute redis_url.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 12 13 14 15 |
# File 'lib/builder_apm/configuration.rb', line 9 def initialize @redis_url = 'redis://localhost:6379/0' @enable_controller_profiler = true @enable_active_record_profiler = true @enable_methods_profiler = true @enable_n_plus_one_profiler = true end |
Instance Attribute Details
#enable_active_record_profiler ⇒ Object
Returns the value of attribute enable_active_record_profiler.
5 6 7 |
# File 'lib/builder_apm/configuration.rb', line 5 def enable_active_record_profiler @enable_active_record_profiler end |
#enable_controller_profiler ⇒ Object
Returns the value of attribute enable_controller_profiler.
4 5 6 |
# File 'lib/builder_apm/configuration.rb', line 4 def enable_controller_profiler @enable_controller_profiler end |
#enable_methods_profiler ⇒ Object
Returns the value of attribute enable_methods_profiler.
6 7 8 |
# File 'lib/builder_apm/configuration.rb', line 6 def enable_methods_profiler @enable_methods_profiler end |
#enable_n_plus_one_profiler ⇒ Object
Returns the value of attribute enable_n_plus_one_profiler.
7 8 9 |
# File 'lib/builder_apm/configuration.rb', line 7 def enable_n_plus_one_profiler @enable_n_plus_one_profiler end |
#redis_url ⇒ Object
Returns the value of attribute redis_url.
3 4 5 |
# File 'lib/builder_apm/configuration.rb', line 3 def redis_url @redis_url end |