Class: Solr::Request::NodeSelectionStrategy

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(collection_name) ⇒ NodeSelectionStrategy

Returns a new instance of NodeSelectionStrategy.



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

def initialize(collection_name)
  @collection_name = collection_name
end

Instance Attribute Details

#collection_nameObject (readonly)

Returns the value of attribute collection_name.



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

def collection_name
  @collection_name
end

Class Method Details

.call(collection_name) ⇒ Object



6
7
8
# File 'lib/solr/request/node_selection_strategy.rb', line 6

def self.call(collection_name)
  new(collection_name).call
end

Instance Method Details

#callObject



14
15
16
# File 'lib/solr/request/node_selection_strategy.rb', line 14

def call
  raise "Not implemented"
end