Class: LogBench::Configuration
- Inherits:
-
Object
- Object
- LogBench::Configuration
- Defined in:
- lib/log_bench/configuration.rb
Instance Attribute Summary collapse
-
#base_controller_classes ⇒ Object
Returns the value of attribute base_controller_classes.
-
#configure_lograge_automatically ⇒ Object
Returns the value of attribute configure_lograge_automatically.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#show_init_message ⇒ Object
Returns the value of attribute show_init_message.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 11 12 |
# File 'lib/log_bench/configuration.rb', line 7 def initialize @show_init_message = :full @enabled = false @base_controller_classes = %w[ApplicationController ActionController::Base] @configure_lograge_automatically = true # Configure lograge by default end |
Instance Attribute Details
#base_controller_classes ⇒ Object
Returns the value of attribute base_controller_classes.
5 6 7 |
# File 'lib/log_bench/configuration.rb', line 5 def base_controller_classes @base_controller_classes end |
#configure_lograge_automatically ⇒ Object
Returns the value of attribute configure_lograge_automatically.
5 6 7 |
# File 'lib/log_bench/configuration.rb', line 5 def configure_lograge_automatically @configure_lograge_automatically end |
#enabled ⇒ Object
Returns the value of attribute enabled.
5 6 7 |
# File 'lib/log_bench/configuration.rb', line 5 def enabled @enabled end |
#show_init_message ⇒ Object
Returns the value of attribute show_init_message.
5 6 7 |
# File 'lib/log_bench/configuration.rb', line 5 def @show_init_message end |