Class: DatabaseHelper::SQLRow
- Inherits:
-
Object
- Object
- DatabaseHelper::SQLRow
- Defined in:
- lib/inspec/utils/database_helpers.rb
Instance Method Summary collapse
- #column(column) ⇒ Object
-
#initialize(query, row) ⇒ SQLRow
constructor
A new instance of SQLRow.
- #to_s ⇒ Object
Constructor Details
#initialize(query, row) ⇒ SQLRow
Returns a new instance of SQLRow.
18 19 20 21 |
# File 'lib/inspec/utils/database_helpers.rb', line 18 def initialize(query, row) @query = query @row = row end |
Instance Method Details
#column(column) ⇒ Object
23 24 25 |
# File 'lib/inspec/utils/database_helpers.rb', line 23 def column(column) SQLColumn.new(@row, column) end |
#to_s ⇒ Object
27 28 29 |
# File 'lib/inspec/utils/database_helpers.rb', line 27 def to_s "SQL Row" end |