Class: Typesense::Stats

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

Constant Summary collapse

RESOURCE_PATH =
'/stats.json'

Instance Method Summary collapse

Constructor Details

#initialize(api_call) ⇒ Stats

Returns a new instance of Stats.



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

def initialize(api_call)
  @api_call = api_call
end

Instance Method Details

#retrieveObject



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

def retrieve
  @api_call.get(RESOURCE_PATH)
end