Module: Storage::Algolia
- Included in:
- Storage
- Defined in:
- lib/storage/algolia/base.rb,
lib/storage/algolia/algolia.rb,
lib/storage/algolia/actions/all.rb,
lib/storage/algolia/actions/get.rb,
lib/storage/algolia/index/clear.rb,
lib/storage/algolia/actions/create.rb,
lib/storage/algolia/actions/delete.rb,
lib/storage/algolia/actions/update.rb
Defined Under Namespace
Modules: Actions, Index
Classes: Base
Class Method Summary
collapse
Class Method Details
.all(model_name:, cursor: nil) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/storage/algolia/algolia.rb', line 5
def self.all(model_name:, cursor: nil)
::Storage::Algolia::Actions::All.new(
model_name: model_name,
cursor: cursor
)
end
|
.clear(model_name:) ⇒ Object
41
42
43
44
45
|
# File 'lib/storage/algolia/algolia.rb', line 41
def self.clear(model_name:)
::Storage::Algolia::Index::Clear.process(
model_name: model_name
)
end
|
.create(model_name:, params:) ⇒ Object
19
20
21
22
23
24
|
# File 'lib/storage/algolia/algolia.rb', line 19
def self.create(model_name:, params:)
::Storage::Algolia::Actions::Create.process(
model_name: model_name,
params: params
)
end
|
.delete(model_name:, id:) ⇒ Object
34
35
36
37
38
39
|
# File 'lib/storage/algolia/algolia.rb', line 34
def self.delete(model_name:, id:)
::Storage::Algolia::Actions::Delete.process(
model_name: model_name,
id: id
)
end
|
.get(model_name:, id:) ⇒ Object
12
13
14
15
16
17
|
# File 'lib/storage/algolia/algolia.rb', line 12
def self.get(model_name:, id:)
::Storage::Algolia::Actions::Get.process(
model_name: model_name,
id: id
)
end
|
.update(model_name:, params:, id:) ⇒ Object
26
27
28
29
30
31
32
|
# File 'lib/storage/algolia/algolia.rb', line 26
def self.update(model_name:, params:, id:)
::Storage::Algolia::Actions::Update.process(
model_name: model_name,
params: params,
id: id
)
end
|