Method: QueryReviewer::QueryWarning#initialize

Defined in:
lib/query_reviewer/query_warning.rb

#initialize(options) ⇒ QueryWarning

Returns a new instance of QueryWarning.



8
9
10
11
12
13
14
15
# File 'lib/query_reviewer/query_warning.rb', line 8

def initialize(options)
  @query = options[:query]
  @severity = options[:severity]
  @problem = options[:problem]
  @desc = options[:desc]
  @table = options[:table]
  @id = (self.class.next_id += 1)
end