Class: Ej::Cluster

Inherits:
Object
  • Object
show all
Defined in:
lib/ej/cluster.rb

Instance Method Summary collapse

Constructor Details

#initialize(values) ⇒ Cluster

Returns a new instance of Cluster.



3
4
5
6
7
# File 'lib/ej/cluster.rb', line 3

def initialize(values)
  @logger =  values.logger
  @index = values.index
  @client = values.client
end

Instance Method Details

#healthObject



9
10
11
# File 'lib/ej/cluster.rb', line 9

def health
  @client.cluster.health
end

#stateObject



13
14
15
# File 'lib/ej/cluster.rb', line 13

def state
  @client.cluster.state
end