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

Inherits:
Binary show all
Includes:
Extensions::JoiningMerging
Defined in:
lib/influxdb/arel/nodes/table_alias.rb

Constant Summary

Constants inherited from Node

Node::ENTENSIONS

Instance Attribute Summary

Attributes inherited from Binary

#left, #right

Instance Method Summary collapse

Methods included from Extensions::JoiningMerging

#join, #merge

Methods inherited from Binary

#eql?, #hash, #initialize, #initialize_copy

Methods inherited from Node

#extend, #to_sql

Methods included from Extensions::BooleanPredications

#and, #or

Constructor Details

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

Instance Method Details

#table_nameObject



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

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

#unaliasObject



15
16
17
# File 'lib/influxdb/arel/nodes/table_alias.rb', line 15

def unalias
  relation
end