Class: PGB::ColumnReference
- Inherits:
-
Expression
- Object
- Expression
- PGB::ColumnReference
- Defined in:
- lib/pgb/column_reference.rb
Instance Method Summary collapse
-
#initialize(table, column) ⇒ ColumnReference
constructor
A new instance of ColumnReference.
- #to_sql ⇒ Object
Methods included from SQLDisplayable
Constructor Details
#initialize(table, column) ⇒ ColumnReference
Returns a new instance of ColumnReference.
5 6 7 |
# File 'lib/pgb/column_reference.rb', line 5 def initialize(table, column) @value = "#{to_identifier(table)}.#{to_identifier(column)}" end |
Instance Method Details
#to_sql ⇒ Object
9 10 11 |
# File 'lib/pgb/column_reference.rb', line 9 def to_sql value end |