Class: AlgebraDB::Build::Column

Inherits:
Struct
  • Object
show all
Defined in:
lib/algebra_db/build/column.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#columnObject

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



3
4
5
# File 'lib/algebra_db/build/column.rb', line 3

def column
  @column
end

#tableObject

Returns the value of attribute table

Returns:

  • (Object)

    the current value of table



3
4
5
# File 'lib/algebra_db/build/column.rb', line 3

def table
  @table
end

Instance Method Details

#default_select_item_aliasObject



8
9
10
# File 'lib/algebra_db/build/column.rb', line 8

def default_select_item_alias
  column
end

#render_syntax(builder) ⇒ Object



4
5
6
# File 'lib/algebra_db/build/column.rb', line 4

def render_syntax(builder)
  builder.text(%("#{table}"."#{column}"))
end