Class: SQLSearch::Conditions::Or
- Inherits:
-
Object
- Object
- SQLSearch::Conditions::Or
- Defined in:
- lib/sql_search_parser.rb
Instance Attribute Summary collapse
-
#left ⇒ Object
readonly
Returns the value of attribute left.
-
#right ⇒ Object
readonly
Returns the value of attribute right.
Instance Method Summary collapse
-
#initialize(options) ⇒ Or
constructor
A new instance of Or.
- #to_s ⇒ Object
Constructor Details
#initialize(options) ⇒ Or
Returns a new instance of Or.
21 22 23 |
# File 'lib/sql_search_parser.rb', line 21 def initialize @left = [:left]; @right = [:right] end |
Instance Attribute Details
#left ⇒ Object (readonly)
Returns the value of attribute left.
20 21 22 |
# File 'lib/sql_search_parser.rb', line 20 def left @left end |
#right ⇒ Object (readonly)
Returns the value of attribute right.
20 21 22 |
# File 'lib/sql_search_parser.rb', line 20 def right @right end |
Instance Method Details
#to_s ⇒ Object
25 26 27 |
# File 'lib/sql_search_parser.rb', line 25 def to_s "(#{left}) OR (#{right})" end |