Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/influxdb/arel/core_extensions.rb

Direct Known Subclasses

Influxdb::Arel::Nodes::SqlLiteral

Instance Method Summary collapse

Instance Method Details

#as(other) ⇒ Object



34
35
36
# File 'lib/influxdb/arel/core_extensions.rb', line 34

def as(other)
  Influxdb::Arel::Nodes::As.new(to_influxdb_arel, other.to_influxdb_arel)
end

#to_influxdb_arelObject Also known as: to_arel



28
29
30
# File 'lib/influxdb/arel/core_extensions.rb', line 28

def to_influxdb_arel
  Influxdb::Arel::Nodes::SqlLiteral.new(self)
end