@@ -7,19 +7,19 @@ module Algolia
7
7
module Personalization
8
8
class PersonalizationStrategyParams
9
9
# Scores associated with each event. The higher the scores, the higher the impact of those events on the personalization of search results.
10
- attr_accessor :event_scoring
10
+ attr_accessor :events_scoring
11
11
12
12
# Scores associated with each facet. The higher the scores, the higher the impact of those events on the personalization of search results.
13
- attr_accessor :facet_scoring
13
+ attr_accessor :facets_scoring
14
14
15
15
# Impact of personalization on the search results. If set to 0, personalization has no impact on the search results.
16
16
attr_accessor :personalization_impact
17
17
18
18
# Attribute mapping from ruby-style variable name to JSON key.
19
19
def self . attribute_map
20
20
{
21
- :event_scoring => :eventScoring ,
22
- :facet_scoring => :facetScoring ,
21
+ :events_scoring => :eventsScoring ,
22
+ :facets_scoring => :facetsScoring ,
23
23
:personalization_impact => :personalizationImpact
24
24
}
25
25
end
@@ -32,8 +32,8 @@ def self.acceptable_attributes
32
32
# Attribute type mapping.
33
33
def self . types_mapping
34
34
{
35
- :event_scoring => :"Array<EventScoring >" ,
36
- :facet_scoring => :"Array<FacetScoring >" ,
35
+ :events_scoring => :"Array<EventsScoring >" ,
36
+ :facets_scoring => :"Array<FacetsScoring >" ,
37
37
:personalization_impact => :"Integer"
38
38
}
39
39
end
@@ -68,20 +68,20 @@ def initialize(attributes = {})
68
68
h [ k . to_sym ] = v
69
69
}
70
70
71
- if attributes . key? ( :event_scoring )
72
- if ( value = attributes [ :event_scoring ] ) . is_a? ( Array )
73
- self . event_scoring = value
71
+ if attributes . key? ( :events_scoring )
72
+ if ( value = attributes [ :events_scoring ] ) . is_a? ( Array )
73
+ self . events_scoring = value
74
74
end
75
75
else
76
- self . event_scoring = nil
76
+ self . events_scoring = nil
77
77
end
78
78
79
- if attributes . key? ( :facet_scoring )
80
- if ( value = attributes [ :facet_scoring ] ) . is_a? ( Array )
81
- self . facet_scoring = value
79
+ if attributes . key? ( :facets_scoring )
80
+ if ( value = attributes [ :facets_scoring ] ) . is_a? ( Array )
81
+ self . facets_scoring = value
82
82
end
83
83
else
84
- self . facet_scoring = nil
84
+ self . facets_scoring = nil
85
85
end
86
86
87
87
if attributes . key? ( :personalization_impact )
@@ -96,8 +96,8 @@ def initialize(attributes = {})
96
96
def ==( other )
97
97
return true if self . equal? ( other )
98
98
self . class == other . class &&
99
- event_scoring == other . event_scoring &&
100
- facet_scoring == other . facet_scoring &&
99
+ events_scoring == other . events_scoring &&
100
+ facets_scoring == other . facets_scoring &&
101
101
personalization_impact == other . personalization_impact
102
102
end
103
103
@@ -110,7 +110,7 @@ def eql?(other)
110
110
# Calculates hash code according to all attributes.
111
111
# @return [Integer] Hash code
112
112
def hash
113
- [ event_scoring , facet_scoring , personalization_impact ] . hash
113
+ [ events_scoring , facets_scoring , personalization_impact ] . hash
114
114
end
115
115
116
116
# Builds the object from hash
0 commit comments