forked from typesense/typesense-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclient.rb
More file actions
27 lines (25 loc) · 1017 Bytes
/
client.rb
File metadata and controls
27 lines (25 loc) · 1017 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# frozen_string_literal: true
module Typesense
class Client
attr_reader :configuration, :collections, :aliases, :keys, :debug, :health, :metrics, :stats, :operations,
:multi_search, :analytics, :analytics_v1, :presets, :stemming, :nl_search_models
def initialize(options = {})
@configuration = Configuration.new(options)
@api_call = ApiCall.new(@configuration)
@collections = Collections.new(@api_call)
@aliases = Aliases.new(@api_call)
@keys = Keys.new(@api_call)
@multi_search = MultiSearch.new(@api_call)
@debug = Debug.new(@api_call)
@health = Health.new(@api_call)
@metrics = Metrics.new(@api_call)
@stats = Stats.new(@api_call)
@operations = Operations.new(@api_call)
@analytics = Analytics.new(@api_call)
@analytics_v1 = AnalyticsV1.new(@api_call)
@stemming = Stemming.new(@api_call)
@presets = Presets.new(@api_call)
@nl_search_models = NlSearchModels.new(@api_call)
end
end
end