algolia 3.3.2 → 3.3.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,7 +6,7 @@ require "time"
6
6
  module Algolia
7
7
  module Recommend
8
8
  # Order of facet names.
9
- class Facets
9
+ class IndexSettingsFacets
10
10
  # Explicit order of facets or facet values. This setting lets you always show specific facets or facet values at the top of the list.
11
11
  attr_accessor :order
12
12
 
@@ -40,7 +40,10 @@ module Algolia
40
40
  # @param [Hash] attributes Model attributes in the form of hash
41
41
  def initialize(attributes = {})
42
42
  if (!attributes.is_a?(Hash))
43
- raise ArgumentError, "The input argument (attributes) must be a hash in `Algolia::Facets` initialize method"
43
+ raise(
44
+ ArgumentError,
45
+ "The input argument (attributes) must be a hash in `Algolia::IndexSettingsFacets` initialize method"
46
+ )
44
47
  end
45
48
 
46
49
  # check to see if the attribute exists and convert string to symbol for hash key
@@ -48,7 +51,7 @@ module Algolia
48
51
  if (!self.class.attribute_map.key?(k.to_sym))
49
52
  raise(
50
53
  ArgumentError,
51
- "`#{k}` is not a valid attribute in `Algolia::Facets`. Please check the name to make sure it's valid. List of attributes: " +
54
+ "`#{k}` is not a valid attribute in `Algolia::IndexSettingsFacets`. Please check the name to make sure it's valid. List of attributes: " +
52
55
  self.class.attribute_map.keys.inspect
53
56
  )
54
57
  end
@@ -48,7 +48,7 @@ module Algolia
48
48
  :index_name => :"String",
49
49
  :threshold => :"Float",
50
50
  :max_recommendations => :"Integer",
51
- :query_parameters => :"SearchParams",
51
+ :query_parameters => :"RecommendSearchParams",
52
52
  :model => :"LookingSimilarModel",
53
53
  :object_id => :"String",
54
54
  :fallback_parameters => :"FallbackParams"