Class: DatabaseHelper::SQLRow
- Inherits:
-
Object
- Object
- DatabaseHelper::SQLRow
- Defined in:
- lib/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.
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_s ⇒ Object
31 32 33 |
# File 'lib/utils/database_helpers.rb', line 31 def to_s 'SQL Row' end |