Class: Ej::Cluster
- Inherits:
-
Object
- Object
- Ej::Cluster
- Defined in:
- lib/ej/cluster.rb
Instance Method Summary collapse
- #health ⇒ Object
-
#initialize(values) ⇒ Cluster
constructor
A new instance of Cluster.
- #state ⇒ Object
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
#health ⇒ Object
9 10 11 |
# File 'lib/ej/cluster.rb', line 9 def health @client.cluster.health end |
#state ⇒ Object
13 14 15 |
# File 'lib/ej/cluster.rb', line 13 def state @client.cluster.state end |