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.
-
#db_event ⇒ Object
Returns the value of attribute db_event.
-
#ignore_cached ⇒ Object
Returns the value of attribute ignore_cached.
-
#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 13 14 |
# File 'lib/db_query_matchers/configuration.rb', line 6 def initialize @db_event = "sql.active_record" @ignores = [] @on_query_counted = Proc.new { } @schemaless = false @ignore_cached = 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 |
#db_event ⇒ Object
Returns the value of attribute db_event.
4 5 6 |
# File 'lib/db_query_matchers/configuration.rb', line 4 def db_event @db_event end |
#ignore_cached ⇒ Object
Returns the value of attribute ignore_cached.
4 5 6 |
# File 'lib/db_query_matchers/configuration.rb', line 4 def ignore_cached @ignore_cached 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 |