Class: ChefZero::Solr::Query::Subquery
- Inherits:
-
Object
- Object
- ChefZero::Solr::Query::Subquery
- Defined in:
- lib/chef_zero/solr/query/subquery.rb
Instance Attribute Summary collapse
-
#subquery ⇒ Object
readonly
Returns the value of attribute subquery.
Instance Method Summary collapse
-
#initialize(subquery) ⇒ Subquery
constructor
A new instance of Subquery.
- #literal_string ⇒ Object
- #matches_doc?(doc) ⇒ Boolean
- #matches_values?(values) ⇒ Boolean
- #regexp ⇒ Object
- #regexp_string ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(subquery) ⇒ Subquery
Returns a new instance of Subquery.
5 6 7 |
# File 'lib/chef_zero/solr/query/subquery.rb', line 5 def initialize(subquery) @subquery = subquery end |
Instance Attribute Details
#subquery ⇒ Object (readonly)
Returns the value of attribute subquery.
9 10 11 |
# File 'lib/chef_zero/solr/query/subquery.rb', line 9 def subquery @subquery end |
Instance Method Details
#literal_string ⇒ Object
15 16 17 |
# File 'lib/chef_zero/solr/query/subquery.rb', line 15 def literal_string subquery.literal_string end |
#matches_doc?(doc) ⇒ Boolean
27 28 29 |
# File 'lib/chef_zero/solr/query/subquery.rb', line 27 def matches_doc?(doc) subquery.matches_doc?(doc) end |
#matches_values?(values) ⇒ Boolean
31 32 33 |
# File 'lib/chef_zero/solr/query/subquery.rb', line 31 def matches_values?(values) subquery.matches_values?(values) end |
#regexp ⇒ Object
19 20 21 |
# File 'lib/chef_zero/solr/query/subquery.rb', line 19 def regexp subquery.regexp end |
#regexp_string ⇒ Object
23 24 25 |
# File 'lib/chef_zero/solr/query/subquery.rb', line 23 def regexp_string subquery.regexp_string end |
#to_s ⇒ Object
11 12 13 |
# File 'lib/chef_zero/solr/query/subquery.rb', line 11 def to_s "(#{subquery})" end |