Class: QueryReviewer::QueryWarning
- Inherits:
-
Object
- Object
- QueryReviewer::QueryWarning
- Defined in:
- lib/query_reviewer/query_warning.rb
Instance Attribute Summary collapse
-
#desc ⇒ Object
readonly
Returns the value of attribute desc.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#problem ⇒ Object
readonly
Returns the value of attribute problem.
-
#query ⇒ Object
readonly
Returns the value of attribute query.
-
#severity ⇒ Object
readonly
Returns the value of attribute severity.
-
#table ⇒ Object
readonly
Returns the value of attribute table.
Instance Method Summary collapse
-
#initialize(options) ⇒ QueryWarning
constructor
A new instance of QueryWarning.
Constructor Details
#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() @query = [:query] @severity = [:severity] @problem = [:problem] @desc = [:desc] @table = [:table] @id = (self.class.next_id += 1) end |
Instance Attribute Details
#desc ⇒ Object (readonly)
Returns the value of attribute desc.
3 4 5 |
# File 'lib/query_reviewer/query_warning.rb', line 3 def desc @desc end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/query_reviewer/query_warning.rb', line 3 def id @id end |
#problem ⇒ Object (readonly)
Returns the value of attribute problem.
3 4 5 |
# File 'lib/query_reviewer/query_warning.rb', line 3 def problem @problem end |
#query ⇒ Object (readonly)
Returns the value of attribute query.
3 4 5 |
# File 'lib/query_reviewer/query_warning.rb', line 3 def query @query end |
#severity ⇒ Object (readonly)
Returns the value of attribute severity.
3 4 5 |
# File 'lib/query_reviewer/query_warning.rb', line 3 def severity @severity end |
#table ⇒ Object (readonly)
Returns the value of attribute table.
3 4 5 |
# File 'lib/query_reviewer/query_warning.rb', line 3 def table @table end |