Sha256: 66f11477c9ecca7011829c46b282a02d2ef282d0db64263f8acdd2fc4f46ef96

Contents?: true

Size: 626 Bytes

Versions: 4

Compression:

Stored size: 626 Bytes

Contents

# frozen_string_literal: true

module Typesense
  class Client
    attr_reader :configuration
    attr_reader :collections
    attr_reader :aliases
    attr_reader :keys
    attr_reader :debug
    attr_reader :health
    attr_reader :metrics

    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)
      @debug = Debug.new(@api_call)
      @health = Health.new(@api_call)
      @metrics = Metrics.new(@api_call)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
typesense-0.5.5 lib/typesense/client.rb
typesense-0.5.4 lib/typesense/client.rb
typesense-0.5.3 lib/typesense/client.rb
typesense-0.5.2 lib/typesense/client.rb