Class: Arel::Nodes::TableAlias

Inherits:
Binary show all
Defined in:
lib/arel/nodes/table_alias.rb

Instance Attribute Summary

Attributes inherited from Binary

#left, #right

Instance Method Summary collapse

Methods inherited from Binary

#initialize, #initialize_copy

Methods inherited from Node

#and, #each, #not, #or, #to_sql

Methods included from FactoryMethods

#create_and, #create_false, #create_join, #create_on, #create_string_join, #create_table_alias, #create_true, #grouping, #lower

Constructor Details

This class inherits a constructor from Arel::Nodes::Binary

Instance Method Details

#[](name) ⇒ Object



8
9
10
# File 'lib/arel/nodes/table_alias.rb', line 8

def [] name
  Attribute.new(self, name)
end

#table_nameObject



12
13
14
# File 'lib/arel/nodes/table_alias.rb', line 12

def table_name
  relation.name
end