lib/algolia/api/query_suggestions_client.rb in algolia-3.11.0 vs lib/algolia/api/query_suggestions_client.rb in algolia-3.12.0

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + # Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. module Algolia class QuerySuggestionsClient attr_accessor :api_client @@ -37,10 +39,10 @@ raise "`region` is required and must be one of the following: #{regions.join(", ")}" end hosts << Transport::StatefulHost.new( - "query-suggestions.{region}.algolia.com".sub!("{region}", region), + "query-suggestions.{region}.algolia.com".sub("{region}", region), accept: CallType::READ | CallType::WRITE ) config = Algolia::Configuration.new(app_id, api_key, hosts, "QuerySuggestions", opts) create_with_config(config)