Class: SQLSearch::Conditions::And
- Inherits:
-
Object
- Object
- SQLSearch::Conditions::And
- 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) ⇒ And
constructor
A new instance of And.
- #to_s ⇒ Object
Constructor Details
#initialize(options) ⇒ And
Returns a new instance of And.
10 11 12 |
# File 'lib/sql_search_parser.rb', line 10 def initialize @left = [:left]; @right = [:right] end |
Instance Attribute Details
#left ⇒ Object (readonly)
Returns the value of attribute left.
9 10 11 |
# File 'lib/sql_search_parser.rb', line 9 def left @left end |
#right ⇒ Object (readonly)
Returns the value of attribute right.
9 10 11 |
# File 'lib/sql_search_parser.rb', line 9 def right @right end |
Instance Method Details
#to_s ⇒ Object
14 15 16 |
# File 'lib/sql_search_parser.rb', line 14 def to_s "(#{left}) AND (#{right})" end |