Class: Typesense::Client

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Client

Returns a new instance of Client.



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/typesense/client.rb', line 8

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)
  @synonym_sets = SynonymSets.new(@api_call)
  @curation_sets = CurationSets.new(@api_call)
end

Instance Attribute Details

#aliasesObject (readonly)

Returns the value of attribute aliases.



5
6
7
# File 'lib/typesense/client.rb', line 5

def aliases
  @aliases
end

#analyticsObject (readonly)

Returns the value of attribute analytics.



5
6
7
# File 'lib/typesense/client.rb', line 5

def analytics
  @analytics
end

#analytics_v1Object (readonly)

Returns the value of attribute analytics_v1.



5
6
7
# File 'lib/typesense/client.rb', line 5

def analytics_v1
  @analytics_v1
end

#collectionsObject (readonly)

Returns the value of attribute collections.



5
6
7
# File 'lib/typesense/client.rb', line 5

def collections
  @collections
end

#configurationObject (readonly)

Returns the value of attribute configuration.



5
6
7
# File 'lib/typesense/client.rb', line 5

def configuration
  @configuration
end

#curation_setsObject (readonly)

Returns the value of attribute curation_sets.



5
6
7
# File 'lib/typesense/client.rb', line 5

def curation_sets
  @curation_sets
end

#debugObject (readonly)

Returns the value of attribute debug.



5
6
7
# File 'lib/typesense/client.rb', line 5

def debug
  @debug
end

#healthObject (readonly)

Returns the value of attribute health.



5
6
7
# File 'lib/typesense/client.rb', line 5

def health
  @health
end

#keysObject (readonly)

Returns the value of attribute keys.



5
6
7
# File 'lib/typesense/client.rb', line 5

def keys
  @keys
end

#metricsObject (readonly)

Returns the value of attribute metrics.



5
6
7
# File 'lib/typesense/client.rb', line 5

def metrics
  @metrics
end

#multi_searchObject (readonly)

Returns the value of attribute multi_search.



5
6
7
# File 'lib/typesense/client.rb', line 5

def multi_search
  @multi_search
end

#nl_search_modelsObject (readonly)

Returns the value of attribute nl_search_models.



5
6
7
# File 'lib/typesense/client.rb', line 5

def nl_search_models
  @nl_search_models
end

#operationsObject (readonly)

Returns the value of attribute operations.



5
6
7
# File 'lib/typesense/client.rb', line 5

def operations
  @operations
end

#presetsObject (readonly)

Returns the value of attribute presets.



5
6
7
# File 'lib/typesense/client.rb', line 5

def presets
  @presets
end

#statsObject (readonly)

Returns the value of attribute stats.



5
6
7
# File 'lib/typesense/client.rb', line 5

def stats
  @stats
end

#stemmingObject (readonly)

Returns the value of attribute stemming.



5
6
7
# File 'lib/typesense/client.rb', line 5

def stemming
  @stemming
end

#synonym_setsObject (readonly)

Returns the value of attribute synonym_sets.



5
6
7
# File 'lib/typesense/client.rb', line 5

def synonym_sets
  @synonym_sets
end