Class: DatabaseHelper::SQLRow

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

Instance Method Summary collapse

Constructor Details

#initialize(query, row) ⇒ SQLRow

Returns a new instance of SQLRow.



22
23
24
25
# File 'lib/utils/database_helpers.rb', line 22

def initialize(query, row)
  @query = query
  @row = row
end

Instance Method Details

#column(column) ⇒ Object



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

def column(column)
  SQLColumn.new(@row, column)
end

#to_sObject



31
32
33
# File 'lib/utils/database_helpers.rb', line 31

def to_s
  'SQL Row'
end