Class: ArelExtensions::Nodes::UnionAll

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

Instance Method Summary collapse

Methods included from SetFunctions

#+, #union, #uniq

Constructor Details

#initialize(left, right) ⇒ UnionAll

Returns a new instance of UnionAll.



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

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

Instance Method Details

#as(other) ⇒ Object



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

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

#union_all(other) ⇒ Object



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

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