Module: DatabaseLeakFinder::Handler

Defined in:
lib/database_leak_finder/handler.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.optionsObject (readonly)

Returns the value of attribute options.



4
5
6
# File 'lib/database_leak_finder/handler.rb', line 4

def options
  @options
end

Class Method Details

.config(options) ⇒ Object



15
16
17
# File 'lib/database_leak_finder/handler.rb', line 15

def config(options)
  @options = options
end

.find_leaksObject



10
11
12
13
# File 'lib/database_leak_finder/handler.rb', line 10

def find_leaks
  leaks = finder.process
  logger.log(@example, leaks) unless leaks.empty?
end

.log_example(example) ⇒ Object



6
7
8
# File 'lib/database_leak_finder/handler.rb', line 6

def log_example(example)
  @example = example
end