algolia 3.5.0 → 3.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/Gemfile.lock +1 -1
- data/lib/algolia/api/abtesting_client.rb +0 -7
- data/lib/algolia/api/analytics_client.rb +0 -168
- data/lib/algolia/api/ingestion_client.rb +2 -170
- data/lib/algolia/api/insights_client.rb +0 -22
- data/lib/algolia/api/monitoring_client.rb +11 -11
- data/lib/algolia/api/search_client.rb +3 -58
- data/lib/algolia/models/abtesting/ab_tests_variant.rb +0 -18
- data/lib/algolia/models/abtesting/ab_tests_variant_search_params.rb +0 -18
- data/lib/algolia/models/abtesting/add_ab_tests_request.rb +0 -18
- data/lib/algolia/models/abtesting/minimum_detectable_effect.rb +0 -18
- data/lib/algolia/models/abtesting/schedule_ab_tests_request.rb +0 -18
- data/lib/algolia/models/abtesting/variant.rb +0 -18
- data/lib/algolia/models/analytics/click_position.rb +0 -32
- data/lib/algolia/models/analytics/daily_add_to_cart_rates.rb +0 -28
- data/lib/algolia/models/analytics/daily_average_clicks.rb +0 -24
- data/lib/algolia/models/analytics/daily_click_through_rates.rb +0 -28
- data/lib/algolia/models/analytics/daily_conversion_rates.rb +0 -28
- data/lib/algolia/models/analytics/daily_no_click_rates.rb +0 -32
- data/lib/algolia/models/analytics/daily_no_results_rates.rb +0 -18
- data/lib/algolia/models/analytics/daily_purchase_rates.rb +0 -14
- data/lib/algolia/models/analytics/daily_searches_no_clicks.rb +0 -14
- data/lib/algolia/models/analytics/daily_searches_no_results.rb +0 -14
- data/lib/algolia/models/analytics/get_add_to_cart_rate_response.rb +0 -28
- data/lib/algolia/models/analytics/get_average_click_position_response.rb +0 -24
- data/lib/algolia/models/analytics/get_click_positions_response.rb +0 -18
- data/lib/algolia/models/analytics/get_click_through_rate_response.rb +0 -28
- data/lib/algolia/models/analytics/get_conversion_rate_response.rb +0 -28
- data/lib/algolia/models/analytics/get_no_click_rate_response.rb +0 -32
- data/lib/algolia/models/analytics/get_no_results_rate_response.rb +0 -18
- data/lib/algolia/models/analytics/get_purchase_rate_response.rb +0 -14
- data/lib/algolia/models/analytics/top_hit_with_analytics.rb +0 -56
- data/lib/algolia/models/analytics/top_hit_with_revenue_analytics.rb +0 -98
- data/lib/algolia/models/analytics/top_search_with_analytics.rb +0 -90
- data/lib/algolia/models/analytics/top_search_with_revenue_analytics.rb +0 -132
- data/lib/algolia/models/ingestion/event.rb +0 -14
- data/lib/algolia/models/ingestion/pagination.rb +0 -60
- data/lib/algolia/models/ingestion/run.rb +0 -18
- data/lib/algolia/models/ingestion/source_csv.rb +0 -21
- data/lib/algolia/models/ingestion/task.rb +0 -18
- data/lib/algolia/models/ingestion/task_create.rb +0 -18
- data/lib/algolia/models/ingestion/task_create_v1.rb +0 -18
- data/lib/algolia/models/ingestion/task_update.rb +0 -18
- data/lib/algolia/models/ingestion/task_update_v1.rb +0 -18
- data/lib/algolia/models/ingestion/task_v1.rb +0 -18
- data/lib/algolia/models/ingestion/transformation.rb +1 -1
- data/lib/algolia/models/ingestion/transformation_create.rb +1 -1
- data/lib/algolia/models/insights/added_to_cart_object_ids.rb +0 -123
- data/lib/algolia/models/insights/added_to_cart_object_ids_after_search.rb +0 -149
- data/lib/algolia/models/insights/clicked_filters.rb +0 -105
- data/lib/algolia/models/insights/clicked_object_ids.rb +0 -105
- data/lib/algolia/models/insights/clicked_object_ids_after_search.rb +0 -149
- data/lib/algolia/models/insights/converted_filters.rb +0 -105
- data/lib/algolia/models/insights/converted_object_ids.rb +0 -105
- data/lib/algolia/models/insights/converted_object_ids_after_search.rb +0 -131
- data/lib/algolia/models/insights/insights_events.rb +0 -18
- data/lib/algolia/models/insights/object_data_after_search.rb +0 -26
- data/lib/algolia/models/insights/purchased_object_ids.rb +0 -123
- data/lib/algolia/models/insights/purchased_object_ids_after_search.rb +0 -123
- data/lib/algolia/models/insights/viewed_filters.rb +0 -105
- data/lib/algolia/models/insights/viewed_object_ids.rb +0 -105
- data/lib/algolia/models/personalization/personalization_strategy_params.rb +0 -18
- data/lib/algolia/models/query-suggestions/configuration.rb +0 -17
- data/lib/algolia/models/query-suggestions/configuration_response.rb +0 -17
- data/lib/algolia/models/query-suggestions/configuration_with_index.rb +0 -17
- data/lib/algolia/models/query-suggestions/source_index.rb +0 -28
- data/lib/algolia/models/recommend/banner_image.rb +4 -2
- data/lib/algolia/models/recommend/bought_together_query.rb +0 -36
- data/lib/algolia/models/recommend/condition.rb +0 -15
- data/lib/algolia/models/recommend/consequence.rb +0 -28
- data/lib/algolia/models/recommend/fallback_params.rb +0 -92
- data/lib/algolia/models/recommend/looking_similar_query.rb +0 -36
- data/lib/algolia/models/recommend/promote_consequence_object.rb +0 -14
- data/lib/algolia/models/recommend/ranking_info.rb +0 -112
- data/lib/algolia/models/recommend/recommend_hit.rb +0 -18
- data/lib/algolia/models/recommend/recommend_search_params.rb +0 -92
- data/lib/algolia/models/recommend/recommendations_results.rb +0 -61
- data/lib/algolia/models/recommend/recommended_for_you_query.rb +0 -36
- data/lib/algolia/models/recommend/related_query.rb +0 -36
- data/lib/algolia/models/recommend/search_recommend_rules_params.rb +0 -50
- data/lib/algolia/models/recommend/search_recommend_rules_response.rb +0 -14
- data/lib/algolia/models/recommend/trending_facet_hit.rb +0 -18
- data/lib/algolia/models/recommend/trending_facets_query.rb +0 -36
- data/lib/algolia/models/recommend/trending_items_query.rb +0 -36
- data/lib/algolia/models/recommend/widgets.rb +5 -2
- data/lib/algolia/models/search/banner_image.rb +4 -2
- data/lib/algolia/models/search/browse_params_object.rb +0 -128
- data/lib/algolia/models/search/browse_response.rb +0 -61
- data/lib/algolia/models/search/condition.rb +0 -15
- data/lib/algolia/models/search/consequence.rb +0 -28
- data/lib/algolia/models/search/consequence_params.rb +0 -128
- data/lib/algolia/models/search/index_settings.rb +0 -78
- data/lib/algolia/models/search/log.rb +0 -34
- data/lib/algolia/models/search/promote_object_ids.rb +0 -14
- data/lib/algolia/models/search/ranking_info.rb +0 -112
- data/lib/algolia/models/search/rule.rb +0 -18
- data/lib/algolia/models/search/search_dictionary_entries_params.rb +0 -32
- data/lib/algolia/models/search/search_dictionary_entries_response.rb +0 -14
- data/lib/algolia/models/search/search_for_facet_values_request.rb +0 -14
- data/lib/algolia/models/search/search_for_facets.rb +0 -128
- data/lib/algolia/models/search/search_for_hits.rb +0 -128
- data/lib/algolia/models/search/search_params_object.rb +0 -128
- data/lib/algolia/models/search/search_response.rb +0 -61
- data/lib/algolia/models/search/search_rules_params.rb +0 -32
- data/lib/algolia/models/search/search_synonyms_params.rb +0 -32
- data/lib/algolia/models/search/search_user_ids_params.rb +0 -32
- data/lib/algolia/models/search/search_user_ids_response.rb +0 -32
- data/lib/algolia/models/search/settings_response.rb +0 -78
- data/lib/algolia/models/search/user_hit.rb +0 -15
- data/lib/algolia/models/search/user_id.rb +0 -15
- data/lib/algolia/models/search/widgets.rb +5 -2
- data/lib/algolia/version.rb +1 -1
- metadata +2 -11
- data/lib/algolia/models/query-suggestions/base_query_suggestions_configuration_response.rb +0 -230
- data/lib/algolia/models/query-suggestions/base_query_suggestions_configuration_with_index.rb +0 -212
- data/lib/algolia/models/query-suggestions/get_config_status200_response.rb +0 -252
- data/lib/algolia/models/query-suggestions/get_log_file200_response.rb +0 -263
- data/lib/algolia/models/query-suggestions/query_suggestions_configuration.rb +0 -276
- data/lib/algolia/models/query-suggestions/query_suggestions_configuration_response.rb +0 -316
- data/lib/algolia/models/query-suggestions/query_suggestions_configuration_with_index.rb +0 -295
- data/lib/algolia/models/recommend/banners.rb +0 -209
- data/lib/algolia/models/search/banners.rb +0 -209
|
@@ -67,24 +67,6 @@ module Algolia
|
|
|
67
67
|
end
|
|
68
68
|
end
|
|
69
69
|
|
|
70
|
-
# Custom attribute writer method with validation
|
|
71
|
-
# @param [Object] positions Value to be assigned
|
|
72
|
-
def positions=(positions)
|
|
73
|
-
if positions.nil?
|
|
74
|
-
raise ArgumentError, "positions cannot be nil"
|
|
75
|
-
end
|
|
76
|
-
|
|
77
|
-
if positions.length > 12
|
|
78
|
-
raise ArgumentError, "invalid value for \"positions\", number of items must be less than or equal to 12."
|
|
79
|
-
end
|
|
80
|
-
|
|
81
|
-
if positions.length < 12
|
|
82
|
-
raise ArgumentError, "invalid value for \"positions\", number of items must be greater than or equal to 12."
|
|
83
|
-
end
|
|
84
|
-
|
|
85
|
-
@positions = positions
|
|
86
|
-
end
|
|
87
|
-
|
|
88
70
|
# Checks equality by comparing each attribute.
|
|
89
71
|
# @param [Object] Object to be compared
|
|
90
72
|
def ==(other)
|
|
@@ -102,34 +102,6 @@ module Algolia
|
|
|
102
102
|
end
|
|
103
103
|
end
|
|
104
104
|
|
|
105
|
-
# Custom attribute writer method with validation
|
|
106
|
-
# @param [Object] rate Value to be assigned
|
|
107
|
-
def rate=(rate)
|
|
108
|
-
if !rate.nil? && rate > 1
|
|
109
|
-
raise ArgumentError, "invalid value for \"rate\", must be smaller than or equal to 1."
|
|
110
|
-
end
|
|
111
|
-
|
|
112
|
-
if !rate.nil? && rate < 0
|
|
113
|
-
raise ArgumentError, "invalid value for \"rate\", must be greater than or equal to 0."
|
|
114
|
-
end
|
|
115
|
-
|
|
116
|
-
@rate = rate
|
|
117
|
-
end
|
|
118
|
-
|
|
119
|
-
# Custom attribute writer method with validation
|
|
120
|
-
# @param [Object] click_count Value to be assigned
|
|
121
|
-
def click_count=(click_count)
|
|
122
|
-
if click_count.nil?
|
|
123
|
-
raise ArgumentError, "click_count cannot be nil"
|
|
124
|
-
end
|
|
125
|
-
|
|
126
|
-
if click_count < 0
|
|
127
|
-
raise ArgumentError, "invalid value for \"click_count\", must be greater than or equal to 0."
|
|
128
|
-
end
|
|
129
|
-
|
|
130
|
-
@click_count = click_count
|
|
131
|
-
end
|
|
132
|
-
|
|
133
105
|
# Checks equality by comparing each attribute.
|
|
134
106
|
# @param [Object] Object to be compared
|
|
135
107
|
def ==(other)
|
|
@@ -102,34 +102,6 @@ module Algolia
|
|
|
102
102
|
end
|
|
103
103
|
end
|
|
104
104
|
|
|
105
|
-
# Custom attribute writer method with validation
|
|
106
|
-
# @param [Object] rate Value to be assigned
|
|
107
|
-
def rate=(rate)
|
|
108
|
-
if !rate.nil? && rate > 1
|
|
109
|
-
raise ArgumentError, "invalid value for \"rate\", must be smaller than or equal to 1."
|
|
110
|
-
end
|
|
111
|
-
|
|
112
|
-
if !rate.nil? && rate < 0
|
|
113
|
-
raise ArgumentError, "invalid value for \"rate\", must be greater than or equal to 0."
|
|
114
|
-
end
|
|
115
|
-
|
|
116
|
-
@rate = rate
|
|
117
|
-
end
|
|
118
|
-
|
|
119
|
-
# Custom attribute writer method with validation
|
|
120
|
-
# @param [Object] conversion_count Value to be assigned
|
|
121
|
-
def conversion_count=(conversion_count)
|
|
122
|
-
if conversion_count.nil?
|
|
123
|
-
raise ArgumentError, "conversion_count cannot be nil"
|
|
124
|
-
end
|
|
125
|
-
|
|
126
|
-
if conversion_count < 0
|
|
127
|
-
raise ArgumentError, "invalid value for \"conversion_count\", must be greater than or equal to 0."
|
|
128
|
-
end
|
|
129
|
-
|
|
130
|
-
@conversion_count = conversion_count
|
|
131
|
-
end
|
|
132
|
-
|
|
133
105
|
# Checks equality by comparing each attribute.
|
|
134
106
|
# @param [Object] Object to be compared
|
|
135
107
|
def ==(other)
|
|
@@ -100,38 +100,6 @@ module Algolia
|
|
|
100
100
|
end
|
|
101
101
|
end
|
|
102
102
|
|
|
103
|
-
# Custom attribute writer method with validation
|
|
104
|
-
# @param [Object] rate Value to be assigned
|
|
105
|
-
def rate=(rate)
|
|
106
|
-
if rate.nil?
|
|
107
|
-
raise ArgumentError, "rate cannot be nil"
|
|
108
|
-
end
|
|
109
|
-
|
|
110
|
-
if rate > 1
|
|
111
|
-
raise ArgumentError, "invalid value for \"rate\", must be smaller than or equal to 1."
|
|
112
|
-
end
|
|
113
|
-
|
|
114
|
-
if rate < 0
|
|
115
|
-
raise ArgumentError, "invalid value for \"rate\", must be greater than or equal to 0."
|
|
116
|
-
end
|
|
117
|
-
|
|
118
|
-
@rate = rate
|
|
119
|
-
end
|
|
120
|
-
|
|
121
|
-
# Custom attribute writer method with validation
|
|
122
|
-
# @param [Object] no_click_count Value to be assigned
|
|
123
|
-
def no_click_count=(no_click_count)
|
|
124
|
-
if no_click_count.nil?
|
|
125
|
-
raise ArgumentError, "no_click_count cannot be nil"
|
|
126
|
-
end
|
|
127
|
-
|
|
128
|
-
if no_click_count < 1
|
|
129
|
-
raise ArgumentError, "invalid value for \"no_click_count\", must be greater than or equal to 1."
|
|
130
|
-
end
|
|
131
|
-
|
|
132
|
-
@no_click_count = no_click_count
|
|
133
|
-
end
|
|
134
|
-
|
|
135
103
|
# Checks equality by comparing each attribute.
|
|
136
104
|
# @param [Object] Object to be compared
|
|
137
105
|
def ==(other)
|
|
@@ -100,24 +100,6 @@ module Algolia
|
|
|
100
100
|
end
|
|
101
101
|
end
|
|
102
102
|
|
|
103
|
-
# Custom attribute writer method with validation
|
|
104
|
-
# @param [Object] rate Value to be assigned
|
|
105
|
-
def rate=(rate)
|
|
106
|
-
if rate.nil?
|
|
107
|
-
raise ArgumentError, "rate cannot be nil"
|
|
108
|
-
end
|
|
109
|
-
|
|
110
|
-
if rate > 1
|
|
111
|
-
raise ArgumentError, "invalid value for \"rate\", must be smaller than or equal to 1."
|
|
112
|
-
end
|
|
113
|
-
|
|
114
|
-
if rate < 0
|
|
115
|
-
raise ArgumentError, "invalid value for \"rate\", must be greater than or equal to 0."
|
|
116
|
-
end
|
|
117
|
-
|
|
118
|
-
@rate = rate
|
|
119
|
-
end
|
|
120
|
-
|
|
121
103
|
# Checks equality by comparing each attribute.
|
|
122
104
|
# @param [Object] Object to be compared
|
|
123
105
|
def ==(other)
|
|
@@ -102,20 +102,6 @@ module Algolia
|
|
|
102
102
|
end
|
|
103
103
|
end
|
|
104
104
|
|
|
105
|
-
# Custom attribute writer method with validation
|
|
106
|
-
# @param [Object] rate Value to be assigned
|
|
107
|
-
def rate=(rate)
|
|
108
|
-
if !rate.nil? && rate > 1
|
|
109
|
-
raise ArgumentError, "invalid value for \"rate\", must be smaller than or equal to 1."
|
|
110
|
-
end
|
|
111
|
-
|
|
112
|
-
if !rate.nil? && rate < 0
|
|
113
|
-
raise ArgumentError, "invalid value for \"rate\", must be greater than or equal to 0."
|
|
114
|
-
end
|
|
115
|
-
|
|
116
|
-
@rate = rate
|
|
117
|
-
end
|
|
118
|
-
|
|
119
105
|
# Checks equality by comparing each attribute.
|
|
120
106
|
# @param [Object] Object to be compared
|
|
121
107
|
def ==(other)
|
|
@@ -134,62 +134,6 @@ module Algolia
|
|
|
134
134
|
end
|
|
135
135
|
end
|
|
136
136
|
|
|
137
|
-
# Custom attribute writer method with validation
|
|
138
|
-
# @param [Object] click_through_rate Value to be assigned
|
|
139
|
-
def click_through_rate=(click_through_rate)
|
|
140
|
-
if !click_through_rate.nil? && click_through_rate > 1
|
|
141
|
-
raise ArgumentError, "invalid value for \"click_through_rate\", must be smaller than or equal to 1."
|
|
142
|
-
end
|
|
143
|
-
|
|
144
|
-
if !click_through_rate.nil? && click_through_rate < 0
|
|
145
|
-
raise ArgumentError, "invalid value for \"click_through_rate\", must be greater than or equal to 0."
|
|
146
|
-
end
|
|
147
|
-
|
|
148
|
-
@click_through_rate = click_through_rate
|
|
149
|
-
end
|
|
150
|
-
|
|
151
|
-
# Custom attribute writer method with validation
|
|
152
|
-
# @param [Object] conversion_rate Value to be assigned
|
|
153
|
-
def conversion_rate=(conversion_rate)
|
|
154
|
-
if !conversion_rate.nil? && conversion_rate > 1
|
|
155
|
-
raise ArgumentError, "invalid value for \"conversion_rate\", must be smaller than or equal to 1."
|
|
156
|
-
end
|
|
157
|
-
|
|
158
|
-
if !conversion_rate.nil? && conversion_rate < 0
|
|
159
|
-
raise ArgumentError, "invalid value for \"conversion_rate\", must be greater than or equal to 0."
|
|
160
|
-
end
|
|
161
|
-
|
|
162
|
-
@conversion_rate = conversion_rate
|
|
163
|
-
end
|
|
164
|
-
|
|
165
|
-
# Custom attribute writer method with validation
|
|
166
|
-
# @param [Object] click_count Value to be assigned
|
|
167
|
-
def click_count=(click_count)
|
|
168
|
-
if click_count.nil?
|
|
169
|
-
raise ArgumentError, "click_count cannot be nil"
|
|
170
|
-
end
|
|
171
|
-
|
|
172
|
-
if click_count < 0
|
|
173
|
-
raise ArgumentError, "invalid value for \"click_count\", must be greater than or equal to 0."
|
|
174
|
-
end
|
|
175
|
-
|
|
176
|
-
@click_count = click_count
|
|
177
|
-
end
|
|
178
|
-
|
|
179
|
-
# Custom attribute writer method with validation
|
|
180
|
-
# @param [Object] conversion_count Value to be assigned
|
|
181
|
-
def conversion_count=(conversion_count)
|
|
182
|
-
if conversion_count.nil?
|
|
183
|
-
raise ArgumentError, "conversion_count cannot be nil"
|
|
184
|
-
end
|
|
185
|
-
|
|
186
|
-
if conversion_count < 0
|
|
187
|
-
raise ArgumentError, "invalid value for \"conversion_count\", must be greater than or equal to 0."
|
|
188
|
-
end
|
|
189
|
-
|
|
190
|
-
@conversion_count = conversion_count
|
|
191
|
-
end
|
|
192
|
-
|
|
193
137
|
# Checks equality by comparing each attribute.
|
|
194
138
|
# @param [Object] Object to be compared
|
|
195
139
|
def ==(other)
|
|
@@ -193,104 +193,6 @@ module Algolia
|
|
|
193
193
|
end
|
|
194
194
|
end
|
|
195
195
|
|
|
196
|
-
# Custom attribute writer method with validation
|
|
197
|
-
# @param [Object] click_through_rate Value to be assigned
|
|
198
|
-
def click_through_rate=(click_through_rate)
|
|
199
|
-
if !click_through_rate.nil? && click_through_rate > 1
|
|
200
|
-
raise ArgumentError, "invalid value for \"click_through_rate\", must be smaller than or equal to 1."
|
|
201
|
-
end
|
|
202
|
-
|
|
203
|
-
if !click_through_rate.nil? && click_through_rate < 0
|
|
204
|
-
raise ArgumentError, "invalid value for \"click_through_rate\", must be greater than or equal to 0."
|
|
205
|
-
end
|
|
206
|
-
|
|
207
|
-
@click_through_rate = click_through_rate
|
|
208
|
-
end
|
|
209
|
-
|
|
210
|
-
# Custom attribute writer method with validation
|
|
211
|
-
# @param [Object] conversion_rate Value to be assigned
|
|
212
|
-
def conversion_rate=(conversion_rate)
|
|
213
|
-
if !conversion_rate.nil? && conversion_rate > 1
|
|
214
|
-
raise ArgumentError, "invalid value for \"conversion_rate\", must be smaller than or equal to 1."
|
|
215
|
-
end
|
|
216
|
-
|
|
217
|
-
if !conversion_rate.nil? && conversion_rate < 0
|
|
218
|
-
raise ArgumentError, "invalid value for \"conversion_rate\", must be greater than or equal to 0."
|
|
219
|
-
end
|
|
220
|
-
|
|
221
|
-
@conversion_rate = conversion_rate
|
|
222
|
-
end
|
|
223
|
-
|
|
224
|
-
# Custom attribute writer method with validation
|
|
225
|
-
# @param [Object] click_count Value to be assigned
|
|
226
|
-
def click_count=(click_count)
|
|
227
|
-
if click_count.nil?
|
|
228
|
-
raise ArgumentError, "click_count cannot be nil"
|
|
229
|
-
end
|
|
230
|
-
|
|
231
|
-
if click_count < 0
|
|
232
|
-
raise ArgumentError, "invalid value for \"click_count\", must be greater than or equal to 0."
|
|
233
|
-
end
|
|
234
|
-
|
|
235
|
-
@click_count = click_count
|
|
236
|
-
end
|
|
237
|
-
|
|
238
|
-
# Custom attribute writer method with validation
|
|
239
|
-
# @param [Object] conversion_count Value to be assigned
|
|
240
|
-
def conversion_count=(conversion_count)
|
|
241
|
-
if conversion_count.nil?
|
|
242
|
-
raise ArgumentError, "conversion_count cannot be nil"
|
|
243
|
-
end
|
|
244
|
-
|
|
245
|
-
if conversion_count < 0
|
|
246
|
-
raise ArgumentError, "invalid value for \"conversion_count\", must be greater than or equal to 0."
|
|
247
|
-
end
|
|
248
|
-
|
|
249
|
-
@conversion_count = conversion_count
|
|
250
|
-
end
|
|
251
|
-
|
|
252
|
-
# Custom attribute writer method with validation
|
|
253
|
-
# @param [Object] add_to_cart_rate Value to be assigned
|
|
254
|
-
def add_to_cart_rate=(add_to_cart_rate)
|
|
255
|
-
if !add_to_cart_rate.nil? && add_to_cart_rate > 1
|
|
256
|
-
raise ArgumentError, "invalid value for \"add_to_cart_rate\", must be smaller than or equal to 1."
|
|
257
|
-
end
|
|
258
|
-
|
|
259
|
-
if !add_to_cart_rate.nil? && add_to_cart_rate < 0
|
|
260
|
-
raise ArgumentError, "invalid value for \"add_to_cart_rate\", must be greater than or equal to 0."
|
|
261
|
-
end
|
|
262
|
-
|
|
263
|
-
@add_to_cart_rate = add_to_cart_rate
|
|
264
|
-
end
|
|
265
|
-
|
|
266
|
-
# Custom attribute writer method with validation
|
|
267
|
-
# @param [Object] add_to_cart_count Value to be assigned
|
|
268
|
-
def add_to_cart_count=(add_to_cart_count)
|
|
269
|
-
if add_to_cart_count.nil?
|
|
270
|
-
raise ArgumentError, "add_to_cart_count cannot be nil"
|
|
271
|
-
end
|
|
272
|
-
|
|
273
|
-
if add_to_cart_count < 0
|
|
274
|
-
raise ArgumentError, "invalid value for \"add_to_cart_count\", must be greater than or equal to 0."
|
|
275
|
-
end
|
|
276
|
-
|
|
277
|
-
@add_to_cart_count = add_to_cart_count
|
|
278
|
-
end
|
|
279
|
-
|
|
280
|
-
# Custom attribute writer method with validation
|
|
281
|
-
# @param [Object] purchase_rate Value to be assigned
|
|
282
|
-
def purchase_rate=(purchase_rate)
|
|
283
|
-
if !purchase_rate.nil? && purchase_rate > 1
|
|
284
|
-
raise ArgumentError, "invalid value for \"purchase_rate\", must be smaller than or equal to 1."
|
|
285
|
-
end
|
|
286
|
-
|
|
287
|
-
if !purchase_rate.nil? && purchase_rate < 0
|
|
288
|
-
raise ArgumentError, "invalid value for \"purchase_rate\", must be greater than or equal to 0."
|
|
289
|
-
end
|
|
290
|
-
|
|
291
|
-
@purchase_rate = purchase_rate
|
|
292
|
-
end
|
|
293
|
-
|
|
294
196
|
# Checks equality by comparing each attribute.
|
|
295
197
|
# @param [Object] Object to be compared
|
|
296
198
|
def ==(other)
|
|
@@ -170,96 +170,6 @@ module Algolia
|
|
|
170
170
|
end
|
|
171
171
|
end
|
|
172
172
|
|
|
173
|
-
# Custom attribute writer method with validation
|
|
174
|
-
# @param [Object] click_through_rate Value to be assigned
|
|
175
|
-
def click_through_rate=(click_through_rate)
|
|
176
|
-
if !click_through_rate.nil? && click_through_rate > 1
|
|
177
|
-
raise ArgumentError, "invalid value for \"click_through_rate\", must be smaller than or equal to 1."
|
|
178
|
-
end
|
|
179
|
-
|
|
180
|
-
if !click_through_rate.nil? && click_through_rate < 0
|
|
181
|
-
raise ArgumentError, "invalid value for \"click_through_rate\", must be greater than or equal to 0."
|
|
182
|
-
end
|
|
183
|
-
|
|
184
|
-
@click_through_rate = click_through_rate
|
|
185
|
-
end
|
|
186
|
-
|
|
187
|
-
# Custom attribute writer method with validation
|
|
188
|
-
# @param [Object] average_click_position Value to be assigned
|
|
189
|
-
def average_click_position=(average_click_position)
|
|
190
|
-
if !average_click_position.nil? && average_click_position < 1
|
|
191
|
-
raise ArgumentError, "invalid value for \"average_click_position\", must be greater than or equal to 1."
|
|
192
|
-
end
|
|
193
|
-
|
|
194
|
-
@average_click_position = average_click_position
|
|
195
|
-
end
|
|
196
|
-
|
|
197
|
-
# Custom attribute writer method with validation
|
|
198
|
-
# @param [Object] click_positions Value to be assigned
|
|
199
|
-
def click_positions=(click_positions)
|
|
200
|
-
if click_positions.nil?
|
|
201
|
-
raise ArgumentError, "click_positions cannot be nil"
|
|
202
|
-
end
|
|
203
|
-
|
|
204
|
-
if click_positions.length > 12
|
|
205
|
-
raise(
|
|
206
|
-
ArgumentError,
|
|
207
|
-
"invalid value for \"click_positions\", number of items must be less than or equal to 12."
|
|
208
|
-
)
|
|
209
|
-
end
|
|
210
|
-
|
|
211
|
-
if click_positions.length < 12
|
|
212
|
-
raise(
|
|
213
|
-
ArgumentError,
|
|
214
|
-
"invalid value for \"click_positions\", number of items must be greater than or equal to 12."
|
|
215
|
-
)
|
|
216
|
-
end
|
|
217
|
-
|
|
218
|
-
@click_positions = click_positions
|
|
219
|
-
end
|
|
220
|
-
|
|
221
|
-
# Custom attribute writer method with validation
|
|
222
|
-
# @param [Object] conversion_rate Value to be assigned
|
|
223
|
-
def conversion_rate=(conversion_rate)
|
|
224
|
-
if !conversion_rate.nil? && conversion_rate > 1
|
|
225
|
-
raise ArgumentError, "invalid value for \"conversion_rate\", must be smaller than or equal to 1."
|
|
226
|
-
end
|
|
227
|
-
|
|
228
|
-
if !conversion_rate.nil? && conversion_rate < 0
|
|
229
|
-
raise ArgumentError, "invalid value for \"conversion_rate\", must be greater than or equal to 0."
|
|
230
|
-
end
|
|
231
|
-
|
|
232
|
-
@conversion_rate = conversion_rate
|
|
233
|
-
end
|
|
234
|
-
|
|
235
|
-
# Custom attribute writer method with validation
|
|
236
|
-
# @param [Object] click_count Value to be assigned
|
|
237
|
-
def click_count=(click_count)
|
|
238
|
-
if click_count.nil?
|
|
239
|
-
raise ArgumentError, "click_count cannot be nil"
|
|
240
|
-
end
|
|
241
|
-
|
|
242
|
-
if click_count < 0
|
|
243
|
-
raise ArgumentError, "invalid value for \"click_count\", must be greater than or equal to 0."
|
|
244
|
-
end
|
|
245
|
-
|
|
246
|
-
@click_count = click_count
|
|
247
|
-
end
|
|
248
|
-
|
|
249
|
-
# Custom attribute writer method with validation
|
|
250
|
-
# @param [Object] conversion_count Value to be assigned
|
|
251
|
-
def conversion_count=(conversion_count)
|
|
252
|
-
if conversion_count.nil?
|
|
253
|
-
raise ArgumentError, "conversion_count cannot be nil"
|
|
254
|
-
end
|
|
255
|
-
|
|
256
|
-
if conversion_count < 0
|
|
257
|
-
raise ArgumentError, "invalid value for \"conversion_count\", must be greater than or equal to 0."
|
|
258
|
-
end
|
|
259
|
-
|
|
260
|
-
@conversion_count = conversion_count
|
|
261
|
-
end
|
|
262
|
-
|
|
263
173
|
# Checks equality by comparing each attribute.
|
|
264
174
|
# @param [Object] Object to be compared
|
|
265
175
|
def ==(other)
|
|
@@ -229,138 +229,6 @@ module Algolia
|
|
|
229
229
|
end
|
|
230
230
|
end
|
|
231
231
|
|
|
232
|
-
# Custom attribute writer method with validation
|
|
233
|
-
# @param [Object] click_through_rate Value to be assigned
|
|
234
|
-
def click_through_rate=(click_through_rate)
|
|
235
|
-
if !click_through_rate.nil? && click_through_rate > 1
|
|
236
|
-
raise ArgumentError, "invalid value for \"click_through_rate\", must be smaller than or equal to 1."
|
|
237
|
-
end
|
|
238
|
-
|
|
239
|
-
if !click_through_rate.nil? && click_through_rate < 0
|
|
240
|
-
raise ArgumentError, "invalid value for \"click_through_rate\", must be greater than or equal to 0."
|
|
241
|
-
end
|
|
242
|
-
|
|
243
|
-
@click_through_rate = click_through_rate
|
|
244
|
-
end
|
|
245
|
-
|
|
246
|
-
# Custom attribute writer method with validation
|
|
247
|
-
# @param [Object] average_click_position Value to be assigned
|
|
248
|
-
def average_click_position=(average_click_position)
|
|
249
|
-
if !average_click_position.nil? && average_click_position < 1
|
|
250
|
-
raise ArgumentError, "invalid value for \"average_click_position\", must be greater than or equal to 1."
|
|
251
|
-
end
|
|
252
|
-
|
|
253
|
-
@average_click_position = average_click_position
|
|
254
|
-
end
|
|
255
|
-
|
|
256
|
-
# Custom attribute writer method with validation
|
|
257
|
-
# @param [Object] click_positions Value to be assigned
|
|
258
|
-
def click_positions=(click_positions)
|
|
259
|
-
if click_positions.nil?
|
|
260
|
-
raise ArgumentError, "click_positions cannot be nil"
|
|
261
|
-
end
|
|
262
|
-
|
|
263
|
-
if click_positions.length > 12
|
|
264
|
-
raise(
|
|
265
|
-
ArgumentError,
|
|
266
|
-
"invalid value for \"click_positions\", number of items must be less than or equal to 12."
|
|
267
|
-
)
|
|
268
|
-
end
|
|
269
|
-
|
|
270
|
-
if click_positions.length < 12
|
|
271
|
-
raise(
|
|
272
|
-
ArgumentError,
|
|
273
|
-
"invalid value for \"click_positions\", number of items must be greater than or equal to 12."
|
|
274
|
-
)
|
|
275
|
-
end
|
|
276
|
-
|
|
277
|
-
@click_positions = click_positions
|
|
278
|
-
end
|
|
279
|
-
|
|
280
|
-
# Custom attribute writer method with validation
|
|
281
|
-
# @param [Object] conversion_rate Value to be assigned
|
|
282
|
-
def conversion_rate=(conversion_rate)
|
|
283
|
-
if !conversion_rate.nil? && conversion_rate > 1
|
|
284
|
-
raise ArgumentError, "invalid value for \"conversion_rate\", must be smaller than or equal to 1."
|
|
285
|
-
end
|
|
286
|
-
|
|
287
|
-
if !conversion_rate.nil? && conversion_rate < 0
|
|
288
|
-
raise ArgumentError, "invalid value for \"conversion_rate\", must be greater than or equal to 0."
|
|
289
|
-
end
|
|
290
|
-
|
|
291
|
-
@conversion_rate = conversion_rate
|
|
292
|
-
end
|
|
293
|
-
|
|
294
|
-
# Custom attribute writer method with validation
|
|
295
|
-
# @param [Object] click_count Value to be assigned
|
|
296
|
-
def click_count=(click_count)
|
|
297
|
-
if click_count.nil?
|
|
298
|
-
raise ArgumentError, "click_count cannot be nil"
|
|
299
|
-
end
|
|
300
|
-
|
|
301
|
-
if click_count < 0
|
|
302
|
-
raise ArgumentError, "invalid value for \"click_count\", must be greater than or equal to 0."
|
|
303
|
-
end
|
|
304
|
-
|
|
305
|
-
@click_count = click_count
|
|
306
|
-
end
|
|
307
|
-
|
|
308
|
-
# Custom attribute writer method with validation
|
|
309
|
-
# @param [Object] conversion_count Value to be assigned
|
|
310
|
-
def conversion_count=(conversion_count)
|
|
311
|
-
if conversion_count.nil?
|
|
312
|
-
raise ArgumentError, "conversion_count cannot be nil"
|
|
313
|
-
end
|
|
314
|
-
|
|
315
|
-
if conversion_count < 0
|
|
316
|
-
raise ArgumentError, "invalid value for \"conversion_count\", must be greater than or equal to 0."
|
|
317
|
-
end
|
|
318
|
-
|
|
319
|
-
@conversion_count = conversion_count
|
|
320
|
-
end
|
|
321
|
-
|
|
322
|
-
# Custom attribute writer method with validation
|
|
323
|
-
# @param [Object] add_to_cart_rate Value to be assigned
|
|
324
|
-
def add_to_cart_rate=(add_to_cart_rate)
|
|
325
|
-
if !add_to_cart_rate.nil? && add_to_cart_rate > 1
|
|
326
|
-
raise ArgumentError, "invalid value for \"add_to_cart_rate\", must be smaller than or equal to 1."
|
|
327
|
-
end
|
|
328
|
-
|
|
329
|
-
if !add_to_cart_rate.nil? && add_to_cart_rate < 0
|
|
330
|
-
raise ArgumentError, "invalid value for \"add_to_cart_rate\", must be greater than or equal to 0."
|
|
331
|
-
end
|
|
332
|
-
|
|
333
|
-
@add_to_cart_rate = add_to_cart_rate
|
|
334
|
-
end
|
|
335
|
-
|
|
336
|
-
# Custom attribute writer method with validation
|
|
337
|
-
# @param [Object] add_to_cart_count Value to be assigned
|
|
338
|
-
def add_to_cart_count=(add_to_cart_count)
|
|
339
|
-
if add_to_cart_count.nil?
|
|
340
|
-
raise ArgumentError, "add_to_cart_count cannot be nil"
|
|
341
|
-
end
|
|
342
|
-
|
|
343
|
-
if add_to_cart_count < 0
|
|
344
|
-
raise ArgumentError, "invalid value for \"add_to_cart_count\", must be greater than or equal to 0."
|
|
345
|
-
end
|
|
346
|
-
|
|
347
|
-
@add_to_cart_count = add_to_cart_count
|
|
348
|
-
end
|
|
349
|
-
|
|
350
|
-
# Custom attribute writer method with validation
|
|
351
|
-
# @param [Object] purchase_rate Value to be assigned
|
|
352
|
-
def purchase_rate=(purchase_rate)
|
|
353
|
-
if !purchase_rate.nil? && purchase_rate > 1
|
|
354
|
-
raise ArgumentError, "invalid value for \"purchase_rate\", must be smaller than or equal to 1."
|
|
355
|
-
end
|
|
356
|
-
|
|
357
|
-
if !purchase_rate.nil? && purchase_rate < 0
|
|
358
|
-
raise ArgumentError, "invalid value for \"purchase_rate\", must be greater than or equal to 0."
|
|
359
|
-
end
|
|
360
|
-
|
|
361
|
-
@purchase_rate = purchase_rate
|
|
362
|
-
end
|
|
363
|
-
|
|
364
232
|
# Checks equality by comparing each attribute.
|
|
365
233
|
# @param [Object] Object to be compared
|
|
366
234
|
def ==(other)
|
|
@@ -135,20 +135,6 @@ module Algolia
|
|
|
135
135
|
end
|
|
136
136
|
end
|
|
137
137
|
|
|
138
|
-
# Custom attribute writer method with validation
|
|
139
|
-
# @param [Object] batch_size Value to be assigned
|
|
140
|
-
def batch_size=(batch_size)
|
|
141
|
-
if batch_size.nil?
|
|
142
|
-
raise ArgumentError, "batch_size cannot be nil"
|
|
143
|
-
end
|
|
144
|
-
|
|
145
|
-
if batch_size < 0
|
|
146
|
-
raise ArgumentError, "invalid value for \"batch_size\", must be greater than or equal to 0."
|
|
147
|
-
end
|
|
148
|
-
|
|
149
|
-
@batch_size = batch_size
|
|
150
|
-
end
|
|
151
|
-
|
|
152
138
|
# Checks equality by comparing each attribute.
|
|
153
139
|
# @param [Object] Object to be compared
|
|
154
140
|
def ==(other)
|
|
@@ -99,66 +99,6 @@ module Algolia
|
|
|
99
99
|
end
|
|
100
100
|
end
|
|
101
101
|
|
|
102
|
-
# Custom attribute writer method with validation
|
|
103
|
-
# @param [Object] nb_pages Value to be assigned
|
|
104
|
-
def nb_pages=(nb_pages)
|
|
105
|
-
if nb_pages.nil?
|
|
106
|
-
raise ArgumentError, "nb_pages cannot be nil"
|
|
107
|
-
end
|
|
108
|
-
|
|
109
|
-
if nb_pages < 1
|
|
110
|
-
raise ArgumentError, "invalid value for \"nb_pages\", must be greater than or equal to 1."
|
|
111
|
-
end
|
|
112
|
-
|
|
113
|
-
@nb_pages = nb_pages
|
|
114
|
-
end
|
|
115
|
-
|
|
116
|
-
# Custom attribute writer method with validation
|
|
117
|
-
# @param [Object] page Value to be assigned
|
|
118
|
-
def page=(page)
|
|
119
|
-
if page.nil?
|
|
120
|
-
raise ArgumentError, "page cannot be nil"
|
|
121
|
-
end
|
|
122
|
-
|
|
123
|
-
if page < 1
|
|
124
|
-
raise ArgumentError, "invalid value for \"page\", must be greater than or equal to 1."
|
|
125
|
-
end
|
|
126
|
-
|
|
127
|
-
@page = page
|
|
128
|
-
end
|
|
129
|
-
|
|
130
|
-
# Custom attribute writer method with validation
|
|
131
|
-
# @param [Object] nb_items Value to be assigned
|
|
132
|
-
def nb_items=(nb_items)
|
|
133
|
-
if nb_items.nil?
|
|
134
|
-
raise ArgumentError, "nb_items cannot be nil"
|
|
135
|
-
end
|
|
136
|
-
|
|
137
|
-
if nb_items < 0
|
|
138
|
-
raise ArgumentError, "invalid value for \"nb_items\", must be greater than or equal to 0."
|
|
139
|
-
end
|
|
140
|
-
|
|
141
|
-
@nb_items = nb_items
|
|
142
|
-
end
|
|
143
|
-
|
|
144
|
-
# Custom attribute writer method with validation
|
|
145
|
-
# @param [Object] items_per_page Value to be assigned
|
|
146
|
-
def items_per_page=(items_per_page)
|
|
147
|
-
if items_per_page.nil?
|
|
148
|
-
raise ArgumentError, "items_per_page cannot be nil"
|
|
149
|
-
end
|
|
150
|
-
|
|
151
|
-
if items_per_page > 100
|
|
152
|
-
raise ArgumentError, "invalid value for \"items_per_page\", must be smaller than or equal to 100."
|
|
153
|
-
end
|
|
154
|
-
|
|
155
|
-
if items_per_page < 1
|
|
156
|
-
raise ArgumentError, "invalid value for \"items_per_page\", must be greater than or equal to 1."
|
|
157
|
-
end
|
|
158
|
-
|
|
159
|
-
@items_per_page = items_per_page
|
|
160
|
-
end
|
|
161
|
-
|
|
162
102
|
# Checks equality by comparing each attribute.
|
|
163
103
|
# @param [Object] Object to be compared
|
|
164
104
|
def ==(other)
|