Class: Influxdb::Arel::Nodes::TableAlias

Inherits:
Binary
  • Object
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

Constructor Details

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

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_nameObject



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

def table_name
  relation.respond_to?(:name) ? relation.name : name
end

#unaliasObject



17
18
19
# File 'lib/influxdb/arel/nodes/table_alias.rb', line 17

def unalias
  relation
end