Class: DBQueryMatchers::Configuration
- Inherits:
-
Object
- Object
- DBQueryMatchers::Configuration
- Defined in:
- lib/db_query_matchers/configuration.rb
Overview
Configuration for the DBQueryMatcher module.
Instance Attribute Summary collapse
-
#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.
-
#on_query_counted ⇒ Object
Returns the value of attribute on_query_counted.
-
#schemaless ⇒ Object
Returns the value of attribute schemaless.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
6 7 8 9 10 11 12 |
# File 'lib/db_query_matchers/configuration.rb', line 6 def initialize @ignores = [] @on_query_counted = Proc.new { } @schemaless = false @log_backtrace = false @backtrace_filter = Proc.new { |backtrace| backtrace } end |
Instance Attribute Details
#backtrace_filter ⇒ Object
Returns the value of attribute backtrace_filter.
4 5 6 |
# File 'lib/db_query_matchers/configuration.rb', line 4 def backtrace_filter @backtrace_filter end |
#ignores ⇒ Object
Returns the value of attribute ignores.
4 5 6 |
# File 'lib/db_query_matchers/configuration.rb', line 4 def ignores @ignores end |
#log_backtrace ⇒ Object
Returns the value of attribute log_backtrace.
4 5 6 |
# File 'lib/db_query_matchers/configuration.rb', line 4 def log_backtrace @log_backtrace end |
#on_query_counted ⇒ Object
Returns the value of attribute on_query_counted.
4 5 6 |
# File 'lib/db_query_matchers/configuration.rb', line 4 def on_query_counted @on_query_counted end |
#schemaless ⇒ Object
Returns the value of attribute schemaless.
4 5 6 |
# File 'lib/db_query_matchers/configuration.rb', line 4 def schemaless @schemaless end |