Class: Groonga::Client::Request::Select::FilterMerger
- Inherits:
-
ParameterMerger
- Object
- ParameterMerger
- Groonga::Client::Request::Select::FilterMerger
- Defined in:
- lib/groonga/client/request/select.rb
Instance Method Summary collapse
Methods inherited from ParameterMerger
Constructor Details
This class inherits a constructor from Groonga::Client::Request::ParameterMerger
Instance Method Details
#to_parameters ⇒ Object
732 733 734 735 736 737 738 739 740 741 742 743 744 |
# File 'lib/groonga/client/request/select.rb', line 732 def to_parameters params1 = @parameters1.to_parameters params2 = @parameters2.to_parameters params = params1.merge(params2) filter1 = params1[:filter] filter2 = params2[:filter] if filter1 and filter2 params[:filter] = "(#{filter1}) && (#{filter2})" elsif filter1 or filter2 params[:filter] = (filter1 || filter2) end params end |