Class: Influxdb::Arel::Nodes::TableAlias
- Inherits:
-
Binary
- Object
- Node
- Binary
- Influxdb::Arel::Nodes::TableAlias
show all
- Defined in:
- lib/influxdb/arel/nodes/table_alias.rb
Instance Attribute Summary
Attributes inherited from Binary
#left, #right
Instance Method Summary
collapse
Methods inherited from Binary
#eql?, #hash, #initialize, #initialize_copy
Methods inherited from Node
#and, #or, #to_sql
Instance Method Details
#[](name) ⇒ Object
9
10
11
|
# File 'lib/influxdb/arel/nodes/table_alias.rb', line 9
def [](name)
Attribute.new(self, name)
end
|
#table_name ⇒ Object
13
14
15
|
# File 'lib/influxdb/arel/nodes/table_alias.rb', line 13
def table_name
relation.respond_to?(:name) ? relation.name : name
end
|
#unalias ⇒ Object
17
18
19
|
# File 'lib/influxdb/arel/nodes/table_alias.rb', line 17
def unalias
relation
end
|