Class: Solr::Query::Request::Grouping
- Inherits:
-
Object
- Object
- Solr::Query::Request::Grouping
- Defined in:
- lib/solr/query/request/grouping.rb
Defined Under Namespace
Classes: None
Instance Attribute Summary collapse
-
#field ⇒ Object
readonly
Returns the value of attribute field.
-
#limit ⇒ Object
readonly
Returns the value of attribute limit.
Class Method Summary collapse
Instance Method Summary collapse
- #empty? ⇒ Boolean
-
#initialize(field:, limit:) ⇒ Grouping
constructor
A new instance of Grouping.
Constructor Details
#initialize(field:, limit:) ⇒ Grouping
Returns a new instance of Grouping.
25 26 27 28 29 |
# File 'lib/solr/query/request/grouping.rb', line 25 def initialize(field:, limit:) @field = field @limit = limit freeze end |
Instance Attribute Details
#field ⇒ Object (readonly)
Returns the value of attribute field.
19 20 21 |
# File 'lib/solr/query/request/grouping.rb', line 19 def field @field end |
#limit ⇒ Object (readonly)
Returns the value of attribute limit.
19 20 21 |
# File 'lib/solr/query/request/grouping.rb', line 19 def limit @limit end |
Class Method Details
Instance Method Details
#empty? ⇒ Boolean
31 32 33 |
# File 'lib/solr/query/request/grouping.rb', line 31 def empty? false end |