Class: Solr::Query::Request::Grouping

Inherits:
Object
  • Object
show all
Defined in:
lib/solr/query/request/grouping.rb

Defined Under Namespace

Classes: None

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#fieldObject (readonly)

Returns the value of attribute field.



19
20
21
# File 'lib/solr/query/request/grouping.rb', line 19

def field
  @field
end

#limitObject (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

.noneObject



21
22
23
# File 'lib/solr/query/request/grouping.rb', line 21

def self.none
  None.new
end

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


31
32
33
# File 'lib/solr/query/request/grouping.rb', line 31

def empty?
  false
end