Method: Algolia::SearchClient#get_rule
- Defined in:
- lib/algolia/api/search_client.rb
#get_rule(index_name, object_id, request_options = {}) ⇒ Rule
Retrieves a rule by its ID. To find the object ID of rules, use the [search operation](#tag/Rules/operation/searchRules).
Required API Key ACLs:
- settings
1480 1481 1482 1483 |
# File 'lib/algolia/api/search_client.rb', line 1480 def get_rule(index_name, object_id, = {}) response = get_rule_with_http_info(index_name, object_id, ) @api_client.deserialize(response.body, [:debug_return_type] || "Search::Rule") end |