lib/algolia/models/recommend/recommendations_results.rb in algolia-3.5.1 vs lib/algolia/models/recommend/recommendations_results.rb in algolia-3.5.2
- old
+ new
@@ -18,10 +18,13 @@
# Distance from a central coordinate provided by `aroundLatLng`.
attr_accessor :automatic_radius
attr_accessor :exhaustive
+ # Rules applied to the query.
+ attr_accessor :applied_rules
+
# See the `facetsCount` field of the `exhaustive` object in the response.
attr_accessor :exhaustive_facets_count
# See the `nbHits` field of the `exhaustive` object in the response.
attr_accessor :exhaustive_nb_hits
@@ -98,10 +101,11 @@
:ab_test_id => :abTestID,
:ab_test_variant_id => :abTestVariantID,
:around_lat_lng => :aroundLatLng,
:automatic_radius => :automaticRadius,
:exhaustive => :exhaustive,
+ :applied_rules => :appliedRules,
:exhaustive_facets_count => :exhaustiveFacetsCount,
:exhaustive_nb_hits => :exhaustiveNbHits,
:exhaustive_typo => :exhaustiveTypo,
:facets => :facets,
:facets_stats => :facets_stats,
@@ -139,10 +143,11 @@
:ab_test_id => :"Integer",
:ab_test_variant_id => :"Integer",
:around_lat_lng => :"String",
:automatic_radius => :"String",
:exhaustive => :"Exhaustive",
+ :applied_rules => :"Array<Object>",
:exhaustive_facets_count => :"Boolean",
:exhaustive_nb_hits => :"Boolean",
:exhaustive_typo => :"Boolean",
:facets => :"Hash<String, Hash<String, Integer>>",
:facets_stats => :"Hash<String, FacetStats>",
@@ -226,10 +231,16 @@
if attributes.key?(:exhaustive)
self.exhaustive = attributes[:exhaustive]
end
+ if attributes.key?(:applied_rules)
+ if (value = attributes[:applied_rules]).is_a?(Array)
+ self.applied_rules = value
+ end
+ end
+
if attributes.key?(:exhaustive_facets_count)
self.exhaustive_facets_count = attributes[:exhaustive_facets_count]
end
if attributes.key?(:exhaustive_nb_hits)
@@ -347,10 +358,11 @@
ab_test_id == other.ab_test_id &&
ab_test_variant_id == other.ab_test_variant_id &&
around_lat_lng == other.around_lat_lng &&
automatic_radius == other.automatic_radius &&
exhaustive == other.exhaustive &&
+ applied_rules == other.applied_rules &&
exhaustive_facets_count == other.exhaustive_facets_count &&
exhaustive_nb_hits == other.exhaustive_nb_hits &&
exhaustive_typo == other.exhaustive_typo &&
facets == other.facets &&
facets_stats == other.facets_stats &&
@@ -389,9 +401,10 @@
ab_test_id,
ab_test_variant_id,
around_lat_lng,
automatic_radius,
exhaustive,
+ applied_rules,
exhaustive_facets_count,
exhaustive_nb_hits,
exhaustive_typo,
facets,
facets_stats,