Class: Noiseless::Adapters::ClusterAPI
- Inherits:
-
Object
- Object
- Noiseless::Adapters::ClusterAPI
- Defined in:
- lib/noiseless/adapters/cluster_api.rb
Overview
Cluster health API - needed for Rails healthcheck
Instance Method Summary collapse
- #health ⇒ Object
-
#initialize(adapter) ⇒ ClusterAPI
constructor
A new instance of ClusterAPI.
Constructor Details
#initialize(adapter) ⇒ ClusterAPI
Returns a new instance of ClusterAPI.
7 8 9 |
# File 'lib/noiseless/adapters/cluster_api.rb', line 7 def initialize(adapter) @adapter = adapter end |
Instance Method Details
#health ⇒ Object
11 12 13 14 15 |
# File 'lib/noiseless/adapters/cluster_api.rb', line 11 def health(**) Sync do @adapter.send(:execute_cluster_health, **) end end |