Class: Arel::Nodes::TableAlias
- Defined in:
- lib/arel/nodes/table_alias.rb
Instance Attribute Summary
Attributes inherited from Binary
Instance Method Summary collapse
Methods inherited from Binary
#eql?, #hash, #initialize, #initialize_copy
Methods inherited from Node
#_caller, #and, #each, #initialize, #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 |
#engine ⇒ Object
16 17 18 |
# File 'lib/arel/nodes/table_alias.rb', line 16 def engine relation.engine end |
#table_name ⇒ Object
12 13 14 |
# File 'lib/arel/nodes/table_alias.rb', line 12 def table_name relation.respond_to?(:name) ? relation.name : name end |