Class: Solr::Document::GroupInformation

Inherits:
Object
  • Object
show all
Defined in:
lib/solr/document.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, value:) ⇒ GroupInformation

Returns a new instance of GroupInformation.



5
6
7
8
# File 'lib/solr/document.rb', line 5

def initialize(key:, value:)
  @key = key
  @value = value
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



4
5
6
# File 'lib/solr/document.rb', line 4

def key
  @key
end

#valueObject (readonly)

Returns the value of attribute value.



4
5
6
# File 'lib/solr/document.rb', line 4

def value
  @value
end

Class Method Details

.emptyObject



10
11
12
# File 'lib/solr/document.rb', line 10

def self.empty
  new(key: nil, value: nil)
end