Class: Elasticsearch::Drain::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/elasticsearch/drain/base.rb

Direct Known Subclasses

Cluster, Node, Nodes

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Base

Returns a new instance of Base.



8
9
10
# File 'lib/elasticsearch/drain/base.rb', line 8

def initialize(client)
  @client = client
end

Instance Attribute Details

#clientObject (readonly)

The Elasticsearch client object



6
7
8
# File 'lib/elasticsearch/drain/base.rb', line 6

def client
  @client
end