Class: FullTableScanMatchers::Configuration
- Inherits:
-
Object
- Object
- FullTableScanMatchers::Configuration
- Defined in:
- lib/full_table_scan_matchers/configuration.rb
Overview
Configuration for the FullTableScanMatchers module.
Instance Attribute Summary collapse
-
#adapter ⇒ Object
Returns the value of attribute adapter.
-
#backtrace_filter ⇒ Object
Returns the value of attribute backtrace_filter.
-
#ignores ⇒ Object
Returns the value of attribute ignores.
-
#log_backtrace ⇒ Object
Returns the value of attribute log_backtrace.
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/full_table_scan_matchers/configuration.rb', line 7 def initialize @ignores = [] @adapter = DBAdapters::MySql @log_backtrace = false @backtrace_filter = Proc.new { |backtrace| backtrace } end |
Instance Attribute Details
#adapter ⇒ Object
Returns the value of attribute adapter.
5 6 7 |
# File 'lib/full_table_scan_matchers/configuration.rb', line 5 def adapter @adapter end |
#backtrace_filter ⇒ Object
Returns the value of attribute backtrace_filter.
5 6 7 |
# File 'lib/full_table_scan_matchers/configuration.rb', line 5 def backtrace_filter @backtrace_filter end |
#ignores ⇒ Object
Returns the value of attribute ignores.
5 6 7 |
# File 'lib/full_table_scan_matchers/configuration.rb', line 5 def ignores @ignores end |
#log_backtrace ⇒ Object
Returns the value of attribute log_backtrace.
5 6 7 |
# File 'lib/full_table_scan_matchers/configuration.rb', line 5 def log_backtrace @log_backtrace end |