Class: Typesense::Health

Inherits:
Object
  • Object
show all
Defined in:
lib/typesense/health.rb

Constant Summary collapse

RESOURCE_PATH =
'/health'

Instance Method Summary collapse

Constructor Details

#initialize(api_call) ⇒ Health

Returns a new instance of Health.



7
8
9
# File 'lib/typesense/health.rb', line 7

def initialize(api_call)
  @api_call = api_call
end

Instance Method Details

#retrieveObject



11
12
13
# File 'lib/typesense/health.rb', line 11

def retrieve
  @api_call.get(RESOURCE_PATH)
end