Class: DBQueryMatchers::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/db_query_matchers/configuration.rb

Overview

Configuration for the DBQueryMatcher module.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_filterObject

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

#ignoresObject

Returns the value of attribute ignores.



4
5
6
# File 'lib/db_query_matchers/configuration.rb', line 4

def ignores
  @ignores
end

#log_backtraceObject

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_countedObject

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

#schemalessObject

Returns the value of attribute schemaless.



4
5
6
# File 'lib/db_query_matchers/configuration.rb', line 4

def schemaless
  @schemaless
end