class Perpetuity::Postgres::QueryIntersection
Attributes
lhs[R]
rhs[R]
Public Class Methods
new(lhs, rhs)
click to toggle source
# File lib/perpetuity/postgres/query_intersection.rb, line 8 def initialize lhs, rhs @lhs = lhs @rhs = rhs end
Public Instance Methods
&(other)
click to toggle source
# File lib/perpetuity/postgres/query_intersection.rb, line 17 def & other QueryIntersection.new(self, other) end
to_db()
click to toggle source
# File lib/perpetuity/postgres/query_intersection.rb, line 13 def to_db "(#{lhs.to_db} AND #{rhs.to_db})" end
|(other)
click to toggle source
# File lib/perpetuity/postgres/query_intersection.rb, line 21 def | other QueryUnion.new(self, other) end