Class: DeprecatedAttributes::Configuration
- Inherits:
-
Object
- Object
- DeprecatedAttributes::Configuration
- Defined in:
- lib/deprecated_attributes/configuration.rb
Overview
Configuration class to define log and error preferences. Enable: whether or not to show logs Full Trace: show full trace of error Raise: To raise a DeprecatedAttributeError Rails Logger: To customize logger output
Instance Attribute Summary collapse
-
#enable ⇒ Object
Returns the value of attribute enable.
-
#full_trace ⇒ Object
Returns the value of attribute full_trace.
-
#rails_logger ⇒ Object
Returns the value of attribute rails_logger.
-
#raise ⇒ Object
Returns the value of attribute raise.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
27 28 29 30 31 32 |
# File 'lib/deprecated_attributes/configuration.rb', line 27 def initialize @enable = true @full_trace = false @raise = false @rails_logger = default_rails_logger_config end |
Instance Attribute Details
#enable ⇒ Object
Returns the value of attribute enable.
25 26 27 |
# File 'lib/deprecated_attributes/configuration.rb', line 25 def enable @enable end |
#full_trace ⇒ Object
Returns the value of attribute full_trace.
25 26 27 |
# File 'lib/deprecated_attributes/configuration.rb', line 25 def full_trace @full_trace end |
#rails_logger ⇒ Object
Returns the value of attribute rails_logger.
25 26 27 |
# File 'lib/deprecated_attributes/configuration.rb', line 25 def rails_logger @rails_logger end |
#raise ⇒ Object
Returns the value of attribute raise.
25 26 27 |
# File 'lib/deprecated_attributes/configuration.rb', line 25 def raise @raise end |