Skip to content

Commit c223468

Browse files
committed
fix(ruby): prefix models by the module (#3927) (generated) [skip ci]
Co-authored-by: Pierre Millot <[email protected]>
1 parent 54e1b5b commit c223468

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+852
-561
lines changed

docs/bundled/abtesting-snippets.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@
292292
"default": "require \"algolia\""
293293
},
294294
"addABTests": {
295-
"default": "response = client.add_ab_tests(\n AddABTestsRequest.new(\n end_at: \"2022-12-31T00:00:00.000Z\",\n name: \"myABTest\",\n variants: [\n AbTestsVariant.new(index: \"AB_TEST_1\", traffic_percentage: 30),\n AbTestsVariant.new(index: \"AB_TEST_2\", traffic_percentage: 50)\n ]\n )\n)"
295+
"default": "response = client.add_ab_tests(\n Algolia::Abtesting::AddABTestsRequest.new(\n end_at: \"2022-12-31T00:00:00.000Z\",\n name: \"myABTest\",\n variants: [\n Algolia::Abtesting::AbTestsVariant.new(index: \"AB_TEST_1\", traffic_percentage: 30),\n Algolia::Abtesting::AbTestsVariant.new(index: \"AB_TEST_2\", traffic_percentage: 50)\n ]\n )\n)"
296296
},
297297
"customDelete": {
298298
"default": "response = client.custom_delete(\"test/minimal\")"
@@ -316,7 +316,7 @@
316316
"default": "response = client.list_ab_tests"
317317
},
318318
"scheduleABTest": {
319-
"default": "response = client.schedule_ab_test(\n ScheduleABTestsRequest.new(\n end_at: \"2022-12-31T00:00:00.000Z\",\n scheduled_at: \"2022-11-31T00:00:00.000Z\",\n name: \"myABTest\",\n variants: [\n AbTestsVariant.new(index: \"AB_TEST_1\", traffic_percentage: 30),\n AbTestsVariant.new(index: \"AB_TEST_2\", traffic_percentage: 50)\n ]\n )\n)"
319+
"default": "response = client.schedule_ab_test(\n Algolia::Abtesting::ScheduleABTestsRequest.new(\n end_at: \"2022-12-31T00:00:00.000Z\",\n scheduled_at: \"2022-11-31T00:00:00.000Z\",\n name: \"myABTest\",\n variants: [\n Algolia::Abtesting::AbTestsVariant.new(index: \"AB_TEST_1\", traffic_percentage: 30),\n Algolia::Abtesting::AbTestsVariant.new(index: \"AB_TEST_2\", traffic_percentage: 50)\n ]\n )\n)"
320320
},
321321
"setClientApiKey": {
322322
"default": "client.set_client_api_key(\"updated-api-key\")"

docs/bundled/ingestion-snippets.json

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,22 +1279,22 @@
12791279
"default": "require \"algolia\""
12801280
},
12811281
"createAuthentication": {
1282-
"default": "response = client.create_authentication(\n AuthenticationCreate.new(\n type: \"oauth\",\n name: \"authName\",\n input: AuthOAuth.new(url: \"http://test.oauth\", client_id: \"myID\", client_secret: \"mySecret\")\n )\n)"
1282+
"default": "response = client.create_authentication(\n Algolia::Ingestion::AuthenticationCreate.new(\n type: \"oauth\",\n name: \"authName\",\n input: Algolia::Ingestion::AuthOAuth.new(url: \"http://test.oauth\", client_id: \"myID\", client_secret: \"mySecret\")\n )\n)"
12831283
},
12841284
"createDestination": {
1285-
"default": "response = client.create_destination(\n DestinationCreate.new(\n type: \"search\",\n name: \"destinationName\",\n input: DestinationIndexName.new(index_name: \"<YOUR_INDEX_NAME>\"),\n authentication_id: \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\"\n )\n)"
1285+
"default": "response = client.create_destination(\n Algolia::Ingestion::DestinationCreate.new(\n type: \"search\",\n name: \"destinationName\",\n input: Algolia::Ingestion::DestinationIndexName.new(index_name: \"<YOUR_INDEX_NAME>\"),\n authentication_id: \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\"\n )\n)"
12861286
},
12871287
"createSource": {
1288-
"default": "response = client.create_source(\n SourceCreate.new(\n type: \"commercetools\",\n name: \"sourceName\",\n input: SourceCommercetools.new(\n store_keys: [\"myStore\"],\n locales: [\"de\"],\n url: \"http://commercetools.com\",\n project_key: \"keyID\"\n ),\n authentication_id: \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\"\n )\n)"
1288+
"default": "response = client.create_source(\n Algolia::Ingestion::SourceCreate.new(\n type: \"commercetools\",\n name: \"sourceName\",\n input: Algolia::Ingestion::SourceCommercetools.new(\n store_keys: [\"myStore\"],\n locales: [\"de\"],\n url: \"http://commercetools.com\",\n project_key: \"keyID\"\n ),\n authentication_id: \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\"\n )\n)"
12891289
},
12901290
"createTask": {
1291-
"default": "response = client.create_task(\n TaskCreate.new(source_id: \"search\", destination_id: \"destinationName\", action: \"replace\")\n)"
1291+
"default": "response = client.create_task(\n Algolia::Ingestion::TaskCreate.new(source_id: \"search\", destination_id: \"destinationName\", action: \"replace\")\n)"
12921292
},
12931293
"createTaskV1": {
1294-
"default": "response = client.create_task_v1(\n TaskCreateV1.new(\n source_id: \"search\",\n destination_id: \"destinationName\",\n trigger: OnDemandTriggerInput.new(type: \"onDemand\"),\n action: \"replace\"\n )\n)"
1294+
"default": "response = client.create_task_v1(\n Algolia::Ingestion::TaskCreateV1.new(\n source_id: \"search\",\n destination_id: \"destinationName\",\n trigger: Algolia::Ingestion::OnDemandTriggerInput.new(type: \"onDemand\"),\n action: \"replace\"\n )\n)"
12951295
},
12961296
"createTransformation": {
1297-
"default": "response = client.create_transformation(TransformationCreate.new(code: \"foo\", name: \"bar\", description: \"baz\"))"
1297+
"default": "response = client.create_transformation(\n Algolia::Ingestion::TransformationCreate.new(code: \"foo\", name: \"bar\", description: \"baz\")\n)"
12981298
},
12991299
"customDelete": {
13001300
"default": "response = client.custom_delete(\"test/minimal\")"
@@ -1387,10 +1387,10 @@
13871387
"default": "response = client.list_transformations"
13881388
},
13891389
"pushTask": {
1390-
"default": "response = client.push_task(\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n PushTaskPayload.new(\n action: \"addObject\",\n records: [\n PushTaskRecords.new(key: \"bar\", foo: \"1\", object_id: \"o\"),\n PushTaskRecords.new(key: \"baz\", foo: \"2\", object_id: \"k\")\n ]\n )\n)"
1390+
"default": "response = client.push_task(\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n Algolia::Ingestion::PushTaskPayload.new(\n action: \"addObject\",\n records: [\n Algolia::Ingestion::PushTaskRecords.new(key: \"bar\", foo: \"1\", object_id: \"o\"),\n Algolia::Ingestion::PushTaskRecords.new(key: \"baz\", foo: \"2\", object_id: \"k\")\n ]\n )\n)"
13911391
},
13921392
"runSource": {
1393-
"default": "response = client.run_source(\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n RunSourcePayload.new(\n index_to_include: [\"products_us\", \"products eu\"],\n entity_ids: [\"1234\", \"5678\"],\n entity_type: \"product\"\n )\n)"
1393+
"default": "response = client.run_source(\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n Algolia::Ingestion::RunSourcePayload.new(\n index_to_include: [\"products_us\", \"products eu\"],\n entity_ids: [\"1234\", \"5678\"],\n entity_type: \"product\"\n )\n)"
13941394
},
13951395
"runTask": {
13961396
"default": "response = client.run_task(\"6c02aeb1-775e-418e-870b-1faccd4b2c0f\")"
@@ -1399,22 +1399,22 @@
13991399
"default": "response = client.run_task_v1(\"6c02aeb1-775e-418e-870b-1faccd4b2c0f\")"
14001400
},
14011401
"searchAuthentications": {
1402-
"default": "response = client.search_authentications(\n AuthenticationSearch.new(\n authentication_ids: [\"6c02aeb1-775e-418e-870b-1faccd4b2c0f\", \"947ac9c4-7e58-4c87-b1e7-14a68e99699a\"]\n )\n)"
1402+
"default": "response = client.search_authentications(\n Algolia::Ingestion::AuthenticationSearch.new(\n authentication_ids: [\"6c02aeb1-775e-418e-870b-1faccd4b2c0f\", \"947ac9c4-7e58-4c87-b1e7-14a68e99699a\"]\n )\n)"
14031403
},
14041404
"searchDestinations": {
1405-
"default": "response = client.search_destinations(\n DestinationSearch.new(\n destination_ids: [\"6c02aeb1-775e-418e-870b-1faccd4b2c0f\", \"947ac9c4-7e58-4c87-b1e7-14a68e99699a\"]\n )\n)"
1405+
"default": "response = client.search_destinations(\n Algolia::Ingestion::DestinationSearch.new(\n destination_ids: [\"6c02aeb1-775e-418e-870b-1faccd4b2c0f\", \"947ac9c4-7e58-4c87-b1e7-14a68e99699a\"]\n )\n)"
14061406
},
14071407
"searchSources": {
1408-
"default": "response = client.search_sources(\n SourceSearch.new(source_ids: [\"6c02aeb1-775e-418e-870b-1faccd4b2c0f\", \"947ac9c4-7e58-4c87-b1e7-14a68e99699a\"])\n)"
1408+
"default": "response = client.search_sources(\n Algolia::Ingestion::SourceSearch.new(\n source_ids: [\"6c02aeb1-775e-418e-870b-1faccd4b2c0f\", \"947ac9c4-7e58-4c87-b1e7-14a68e99699a\"]\n )\n)"
14091409
},
14101410
"searchTasks": {
1411-
"default": "response = client.search_tasks(\n TaskSearch.new(\n task_ids: [\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n \"947ac9c4-7e58-4c87-b1e7-14a68e99699a\",\n \"76ab4c2a-ce17-496f-b7a6-506dc59ee498\"\n ]\n )\n)"
1411+
"default": "response = client.search_tasks(\n Algolia::Ingestion::TaskSearch.new(\n task_ids: [\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n \"947ac9c4-7e58-4c87-b1e7-14a68e99699a\",\n \"76ab4c2a-ce17-496f-b7a6-506dc59ee498\"\n ]\n )\n)"
14121412
},
14131413
"searchTasksV1": {
1414-
"default": "response = client.search_tasks_v1(\n TaskSearch.new(\n task_ids: [\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n \"947ac9c4-7e58-4c87-b1e7-14a68e99699a\",\n \"76ab4c2a-ce17-496f-b7a6-506dc59ee498\"\n ]\n )\n)"
1414+
"default": "response = client.search_tasks_v1(\n Algolia::Ingestion::TaskSearch.new(\n task_ids: [\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n \"947ac9c4-7e58-4c87-b1e7-14a68e99699a\",\n \"76ab4c2a-ce17-496f-b7a6-506dc59ee498\"\n ]\n )\n)"
14151415
},
14161416
"searchTransformations": {
1417-
"default": "response = client.search_transformations(\n TransformationSearch.new(\n transformation_ids: [\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n \"947ac9c4-7e58-4c87-b1e7-14a68e99699a\",\n \"76ab4c2a-ce17-496f-b7a6-506dc59ee498\"\n ]\n )\n)"
1417+
"default": "response = client.search_transformations(\n Algolia::Ingestion::TransformationSearch.new(\n transformation_ids: [\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n \"947ac9c4-7e58-4c87-b1e7-14a68e99699a\",\n \"76ab4c2a-ce17-496f-b7a6-506dc59ee498\"\n ]\n )\n)"
14181418
},
14191419
"setClientApiKey": {
14201420
"default": "client.set_client_api_key(\"updated-api-key\")"
@@ -1423,34 +1423,34 @@
14231423
"default": "response = client.trigger_docker_source_discover(\"6c02aeb1-775e-418e-870b-1faccd4b2c0f\")"
14241424
},
14251425
"tryTransformation": {
1426-
"default": "response = client.try_transformation(TransformationTry.new(code: \"foo\", sample_record: {bar: \"baz\"}))"
1426+
"default": "response = client.try_transformation(\n Algolia::Ingestion::TransformationTry.new(code: \"foo\", sample_record: {bar: \"baz\"})\n)"
14271427
},
14281428
"tryTransformationBeforeUpdate": {
1429-
"default": "response = client.try_transformation_before_update(\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n TransformationTry.new(code: \"foo\", sample_record: {bar: \"baz\"})\n)"
1429+
"default": "response = client.try_transformation_before_update(\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n Algolia::Ingestion::TransformationTry.new(code: \"foo\", sample_record: {bar: \"baz\"})\n)"
14301430
},
14311431
"updateAuthentication": {
1432-
"default": "response = client.update_authentication(\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n AuthenticationUpdate.new(name: \"newName\")\n)"
1432+
"default": "response = client.update_authentication(\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n Algolia::Ingestion::AuthenticationUpdate.new(name: \"newName\")\n)"
14331433
},
14341434
"updateDestination": {
1435-
"default": "response = client.update_destination(\"6c02aeb1-775e-418e-870b-1faccd4b2c0f\", DestinationUpdate.new(name: \"newName\"))"
1435+
"default": "response = client.update_destination(\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n Algolia::Ingestion::DestinationUpdate.new(name: \"newName\")\n)"
14361436
},
14371437
"updateSource": {
1438-
"default": "response = client.update_source(\"6c02aeb1-775e-418e-870b-1faccd4b2c0f\", SourceUpdate.new(name: \"newName\"))"
1438+
"default": "response = client.update_source(\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n Algolia::Ingestion::SourceUpdate.new(name: \"newName\")\n)"
14391439
},
14401440
"updateTask": {
1441-
"default": "response = client.update_task(\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n TaskUpdate.new(enabled: false, cron: \"* * * * *\")\n)"
1441+
"default": "response = client.update_task(\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n Algolia::Ingestion::TaskUpdate.new(enabled: false, cron: \"* * * * *\")\n)"
14421442
},
14431443
"updateTaskV1": {
1444-
"default": "response = client.update_task_v1(\"6c02aeb1-775e-418e-870b-1faccd4b2c0f\", TaskUpdateV1.new(enabled: false))"
1444+
"default": "response = client.update_task_v1(\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n Algolia::Ingestion::TaskUpdateV1.new(enabled: false)\n)"
14451445
},
14461446
"updateTransformation": {
1447-
"default": "response = client.update_transformation(\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n TransformationCreate.new(code: \"foo\", name: \"bar\", description: \"baz\")\n)"
1447+
"default": "response = client.update_transformation(\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n Algolia::Ingestion::TransformationCreate.new(code: \"foo\", name: \"bar\", description: \"baz\")\n)"
14481448
},
14491449
"validateSource": {
1450-
"default": "response = client.validate_source(\n SourceCreate.new(\n type: \"commercetools\",\n name: \"sourceName\",\n input: SourceCommercetools.new(\n store_keys: [\"myStore\"],\n locales: [\"de\"],\n url: \"http://commercetools.com\",\n project_key: \"keyID\"\n ),\n authentication_id: \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\"\n )\n)"
1450+
"default": "response = client.validate_source(\n Algolia::Ingestion::SourceCreate.new(\n type: \"commercetools\",\n name: \"sourceName\",\n input: Algolia::Ingestion::SourceCommercetools.new(\n store_keys: [\"myStore\"],\n locales: [\"de\"],\n url: \"http://commercetools.com\",\n project_key: \"keyID\"\n ),\n authentication_id: \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\"\n )\n)"
14511451
},
14521452
"validateSourceBeforeUpdate": {
1453-
"default": "response = client.validate_source_before_update(\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n SourceUpdate.new(name: \"newName\")\n)"
1453+
"default": "response = client.validate_source_before_update(\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n Algolia::Ingestion::SourceUpdate.new(name: \"newName\")\n)"
14541454
},
14551455
"init": {
14561456
"default": "client = Algolia::IngestionClient.create(\"ALGOLIA_APPLICATION_ID\", \"ALGOLIA_API_KEY\", \"ALGOLIA_APPLICATION_REGION\")"

docs/bundled/insights-snippets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@
251251
"default": "client.delete_user_token(\"test-user-1\")"
252252
},
253253
"pushEvents": {
254-
"default": "response = client.push_events(\n InsightsEvents.new(\n events: [\n ClickedObjectIDsAfterSearch.new(\n event_type: \"click\",\n event_name: \"Product Clicked\",\n index: \"products\",\n user_token: \"user-123456\",\n authenticated_user_token: \"user-123456\",\n timestamp: 1641290601962,\n object_ids: [\"9780545139700\", \"9780439784542\"],\n query_id: \"43b15df305339e827f0ac0bdc5ebcaa7\",\n positions: [7, 6]\n )\n ]\n )\n)"
254+
"default": "response = client.push_events(\n Algolia::Insights::InsightsEvents.new(\n events: [\n Algolia::Insights::ClickedObjectIDsAfterSearch.new(\n event_type: \"click\",\n event_name: \"Product Clicked\",\n index: \"products\",\n user_token: \"user-123456\",\n authenticated_user_token: \"user-123456\",\n timestamp: 1641290601962,\n object_ids: [\"9780545139700\", \"9780439784542\"],\n query_id: \"43b15df305339e827f0ac0bdc5ebcaa7\",\n positions: [7, 6]\n )\n ]\n )\n)"
255255
},
256256
"setClientApiKey": {
257257
"default": "client.set_client_api_key(\"updated-api-key\")"

docs/bundled/personalization-snippets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@
274274
"default": "client.set_client_api_key(\"updated-api-key\")"
275275
},
276276
"setPersonalizationStrategy": {
277-
"default": "response = client.set_personalization_strategy(\n PersonalizationStrategyParams.new(\n event_scoring: [EventScoring.new(score: 42, event_name: \"Algolia\", event_type: \"click\")],\n facet_scoring: [FacetScoring.new(score: 42, facet_name: \"Event\")],\n personalization_impact: 42\n )\n)"
277+
"default": "response = client.set_personalization_strategy(\n Algolia::Personalization::PersonalizationStrategyParams.new(\n event_scoring: [Algolia::Personalization::EventScoring.new(score: 42, event_name: \"Algolia\", event_type: \"click\")],\n facet_scoring: [Algolia::Personalization::FacetScoring.new(score: 42, facet_name: \"Event\")],\n personalization_impact: 42\n )\n)"
278278
},
279279
"init": {
280280
"default": "client = Algolia::PersonalizationClient.create(\n \"ALGOLIA_APPLICATION_ID\",\n \"ALGOLIA_API_KEY\",\n \"ALGOLIA_APPLICATION_REGION\"\n)"

docs/bundled/query-suggestions-snippets.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@
313313
"default": "require \"algolia\""
314314
},
315315
"createConfig": {
316-
"default": "response = client.create_config(\n ConfigurationWithIndex.new(\n index_name: \"<YOUR_INDEX_NAME>\",\n source_indices: [\n SourceIndex.new(\n index_name: \"<YOUR_INDEX_NAME>\",\n facets: [Facet.new(attribute: \"test\")],\n generate: [[\"facetA\", \"facetB\"], [\"facetC\"]]\n )\n ],\n languages: [\"french\"],\n exclude: [\"test\"]\n )\n)"
316+
"default": "response = client.create_config(\n Algolia::QuerySuggestions::ConfigurationWithIndex.new(\n index_name: \"<YOUR_INDEX_NAME>\",\n source_indices: [\n Algolia::QuerySuggestions::SourceIndex.new(\n index_name: \"<YOUR_INDEX_NAME>\",\n facets: [Algolia::QuerySuggestions::Facet.new(attribute: \"test\")],\n generate: [[\"facetA\", \"facetB\"], [\"facetC\"]]\n )\n ],\n languages: [\"french\"],\n exclude: [\"test\"]\n )\n)"
317317
},
318318
"customDelete": {
319319
"default": "response = client.custom_delete(\"test/minimal\")"
@@ -346,7 +346,7 @@
346346
"default": "client.set_client_api_key(\"updated-api-key\")"
347347
},
348348
"updateConfig": {
349-
"default": "response = client.update_config(\n \"<YOUR_INDEX_NAME>\",\n Configuration.new(\n source_indices: [\n SourceIndex.new(\n index_name: \"<YOUR_INDEX_NAME>\",\n facets: [Facet.new(attribute: \"test\")],\n generate: [[\"facetA\", \"facetB\"], [\"facetC\"]]\n )\n ],\n languages: [\"french\"],\n exclude: [\"test\"]\n )\n)"
349+
"default": "response = client.update_config(\n \"<YOUR_INDEX_NAME>\",\n Algolia::QuerySuggestions::Configuration.new(\n source_indices: [\n Algolia::QuerySuggestions::SourceIndex.new(\n index_name: \"<YOUR_INDEX_NAME>\",\n facets: [Algolia::QuerySuggestions::Facet.new(attribute: \"test\")],\n generate: [[\"facetA\", \"facetB\"], [\"facetC\"]]\n )\n ],\n languages: [\"french\"],\n exclude: [\"test\"]\n )\n)"
350350
},
351351
"init": {
352352
"default": "client = Algolia::QuerySuggestionsClient.create(\n \"ALGOLIA_APPLICATION_ID\",\n \"ALGOLIA_API_KEY\",\n \"ALGOLIA_APPLICATION_REGION\"\n)"

docs/bundled/recommend-snippets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@
356356
"default": "response = client.get_recommend_status(\"<YOUR_INDEX_NAME>\", \"related-products\", 12345)"
357357
},
358358
"getRecommendations": {
359-
"default": "response = client.get_recommendations(\n GetRecommendationsParams.new(\n requests: [\n RelatedQuery.new(\n index_name: \"<YOUR_INDEX_NAME>\",\n object_id: \"objectID\",\n model: \"related-products\",\n threshold: 42.1\n )\n ]\n )\n)"
359+
"default": "response = client.get_recommendations(\n Algolia::Recommend::GetRecommendationsParams.new(\n requests: [\n Algolia::Recommend::RelatedQuery.new(\n index_name: \"<YOUR_INDEX_NAME>\",\n object_id: \"objectID\",\n model: \"related-products\",\n threshold: 42.1\n )\n ]\n )\n)"
360360
},
361361
"searchRecommendRules": {
362362
"default": "response = client.search_recommend_rules(\"<YOUR_INDEX_NAME>\", \"related-products\")"

0 commit comments

Comments
 (0)