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
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_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

#db_eventObject

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_cachedObject

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

#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