Class: Typesense::Stats
- Inherits:
-
Object
- Object
- Typesense::Stats
- Defined in:
- lib/typesense/stats.rb
Constant Summary collapse
- RESOURCE_PATH =
'/stats.json'
Instance Method Summary collapse
-
#initialize(api_call) ⇒ Stats
constructor
A new instance of Stats.
- #retrieve ⇒ Object
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
#retrieve ⇒ Object
11 12 13 |
# File 'lib/typesense/stats.rb', line 11 def retrieve @api_call.get(RESOURCE_PATH) end |