Sha256: 532c24ec00e65c5ac289e0102a0e0458068a4a9edbef4b623d1ee682d9afe29b

Contents?: true

Size: 781 Bytes

Versions: 5

Compression:

Stored size: 781 Bytes

Contents

# frozen_string_literal: true

module Typesense
  class Client
    attr_reader :configuration, :collections, :aliases, :keys, :debug, :health, :metrics, :operations,
                :multi_search, :analytics, :presets

    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)
      @operations = Operations.new(@api_call)
      @analytics = Analytics.new(@api_call)
      @presets = Presets.new(@api_call)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
typesense-2.1.0.rc1 lib/typesense/client.rb
typesense-2.0.0 lib/typesense/client.rb
typesense-1.1.0 lib/typesense/client.rb
typesense-1.0.0 lib/typesense/client.rb
typesense-0.15.0 lib/typesense/client.rb