Class: OrQ

Inherits:
BinaryQ show all
Defined in:
lib/dolzenko/django_q_object.rb

Instance Attribute Summary

Attributes inherited from BinaryQ

#op1, #op2

Instance Method Summary collapse

Methods inherited from BinaryQ

#empty?, #initialize

Methods inherited from Q

#&, #|, #~

Constructor Details

This class inherits a constructor from BinaryQ

Instance Method Details

#to_q_sql(klass) ⇒ Object



86
87
88
# File 'lib/dolzenko/django_q_object.rb', line 86

def to_q_sql(klass)
  "(#{ op1.to_q_sql(klass) }) OR (#{ op2.to_q_sql(klass) })"
end