Module: Influxdb::Arel::AliasPredication

Included in:
Influxdb::Arel::Attributes::Attribute, Nodes::Function, Nodes::Grouping, Nodes::InfixOperation, Nodes::SqlLiteral
Defined in:
lib/influxdb/arel/alias_predication.rb

Instance Method Summary collapse

Instance Method Details

#as(other) ⇒ Object



4
5
6
# File 'lib/influxdb/arel/alias_predication.rb', line 4

def as(other)
  Nodes::As.new(self, Arel.sql(other.to_s))
end