Class: ArelExtensions::Nodes::UnionAll

Inherits:
Arel::Nodes::UnionAll
  • Object
show all
Defined in:
lib/arel_extensions/nodes/union_all.rb

Instance Method Summary collapse

Constructor Details

#initialize(left, right) ⇒ UnionAll

Returns a new instance of UnionAll.



5
6
7
# File 'lib/arel_extensions/nodes/union_all.rb', line 5

def initialize left,right
  return super(left,right)
end

Instance Method Details

#as(other) ⇒ Object



13
14
15
# File 'lib/arel_extensions/nodes/union_all.rb', line 13

def as other
  Arel::Nodes::TableAlias.new Arel::Nodes::Grouping.new(self), Arel::Nodes::SqlLiteral.new(other.to_s)
end

#union_all(other) ⇒ Object



9
10
11
# File 'lib/arel_extensions/nodes/union_all.rb', line 9

def union_all(other)
  return ArelExtensions::Nodes::UnionAll.new(self,other)
end