Class: Believe::Resources::Health
- Inherits:
-
Object
- Object
- Believe::Resources::Health
- Defined in:
- lib/believe/resources/health.rb
Instance Method Summary collapse
-
#check(request_options: {}) ⇒ Object
Check if the API is running and healthy.
-
#initialize(client:) ⇒ Health
constructor
private
A new instance of Health.
Constructor Details
#initialize(client:) ⇒ Health
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Health.
27 28 29 |
# File 'lib/believe/resources/health.rb', line 27 def initialize(client:) @client = client end |
Instance Method Details
#check(request_options: {}) ⇒ Object
Check if the API is running and healthy.
15 16 17 18 19 20 21 22 |
# File 'lib/believe/resources/health.rb', line 15 def check(params = {}) @client.request( method: :get, path: "health", model: ::Believe::Internal::Type::Unknown, options: params[:request_options] ) end |