Class: DatabaseHelper::SQLRow

Inherits:
Object
  • Object
show all
Defined in:
lib/inspec/utils/database_helpers.rb

Instance Method Summary collapse

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_sObject



27
28
29
# File 'lib/inspec/utils/database_helpers.rb', line 27

def to_s
  "SQL Row"
end