Class: Solr::Query::Request::OrFilter
- Inherits:
-
Object
- Object
- Solr::Query::Request::OrFilter
- Defined in:
- lib/solr/query/request/or_filter.rb
Instance Attribute Summary collapse
-
#filters ⇒ Object
readonly
Returns the value of attribute filters.
Instance Method Summary collapse
-
#initialize(*filters) ⇒ OrFilter
constructor
A new instance of OrFilter.
- #to_solr_s ⇒ Object
Constructor Details
#initialize(*filters) ⇒ OrFilter
Returns a new instance of OrFilter.
7 8 9 |
# File 'lib/solr/query/request/or_filter.rb', line 7 def initialize(*filters) @filters = filters end |
Instance Attribute Details
#filters ⇒ Object (readonly)
Returns the value of attribute filters.
5 6 7 |
# File 'lib/solr/query/request/or_filter.rb', line 5 def filters @filters end |
Instance Method Details
#to_solr_s ⇒ Object
11 12 13 14 |
# File 'lib/solr/query/request/or_filter.rb', line 11 def to_solr_s subexpressions = @filters.map(&:to_solr_s) "(#{subexpressions.join(' OR ')})" end |