Class: Typesensual
- Inherits:
-
Object
show all
- Defined in:
- lib/typesensual.rb,
lib/typesensual/field.rb,
lib/typesensual/index.rb,
lib/typesensual/config.rb,
lib/typesensual/schema.rb,
lib/typesensual/search.rb,
lib/typesensual/railtie.rb,
lib/typesensual/version.rb,
lib/typesensual/callbacks.rb,
lib/typesensual/collection.rb,
lib/typesensual/search/hit.rb,
lib/typesensual/rake_helper.rb,
lib/typesensual/search/facet.rb,
lib/typesensual/state_helpers.rb,
lib/typesensual/search/results.rb,
lib/typesensual/search/grouped_hit.rb
Defined Under Namespace
Modules: StateHelpers
Classes: Callbacks, Collection, Config, Field, Index, Railtie, RakeHelper, Schema, Search
Constant Summary
collapse
- VERSION =
'1.0.0'
Class Method Summary
collapse
Class Method Details
.client ⇒ Object
22
23
24
|
# File 'lib/typesensual.rb', line 22
def client
config&.client
end
|
.collections ⇒ Array<Collection>
Get the collections that match the alias name
37
38
39
40
41
|
# File 'lib/typesensual.rb', line 37
def collections
Typesensual.client.collections.retrieve.map do |collection|
Collection.new(collection)
end
end
|
26
27
28
|
# File 'lib/typesensual.rb', line 26
def configure(&block)
@config = Typesensual::Config.new(&block)
end
|