algolia 3.20.0 → 3.21.0
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 +4 -0
- data/Gemfile.lock +1 -1
- data/lib/algolia/models/abtesting/currency.rb +14 -4
- data/lib/algolia/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15d67b913fecb6c1c1b60185caf688ada4fbb24b6628afa39db7e42c898c0c58
|
4
|
+
data.tar.gz: 62cfbb6829608b127f5ebc99c8038720b87b96cb5a18dbbce7c25a2a9e470651
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ae767d1d41a64c411b1d988ed1c85f2c06184bb2ef09e7fcf6e1370b9b73fd151aa940bb03a0bf72ca71ca4c6cf684698071a451c203f2a58cbb97be4f41b00
|
7
|
+
data.tar.gz: ca6403652ef0621746fa9680f33f7843b7b5f7d649cb23707b5a2a36c569f8760d3015672fe2b3010fb7f7063a7027174fa921c16496ce50809ce3dc039625f9
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
## [3.21.0](https://github.com/algolia/algoliasearch-client-ruby/compare/3.20.0...3.21.0)
|
2
|
+
|
3
|
+
- [791a0c045d](https://github.com/algolia/api-clients-automation/commit/791a0c045d) feat(specs): abtesting winsorizedAmount ([#5053](https://github.com/algolia/api-clients-automation/pull/5053)) by [@cdhawke](https://github.com/cdhawke/)
|
4
|
+
|
1
5
|
## [3.20.0](https://github.com/algolia/algoliasearch-client-ruby/compare/3.19.0...3.20.0)
|
2
6
|
|
3
7
|
- [a2ebbf496c](https://github.com/algolia/api-clients-automation/commit/a2ebbf496c) feat(clients): add `replaceAllObjectsWithTransformation` ([#5008](https://github.com/algolia/api-clients-automation/pull/5008)) by [@shortcuts](https://github.com/shortcuts/)
|
data/Gemfile.lock
CHANGED
@@ -20,13 +20,17 @@ module Algolia
|
|
20
20
|
# Standard deviation for this currency.
|
21
21
|
attr_accessor :standard_deviation
|
22
22
|
|
23
|
+
# The amount of revenue for this currency that was removed after capping purchase amounts to the 95th percentile.
|
24
|
+
attr_accessor :winsorized_amount
|
25
|
+
|
23
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
27
|
def self.attribute_map
|
25
28
|
{
|
26
29
|
:currency => :currency,
|
27
30
|
:revenue => :revenue,
|
28
31
|
:mean => :mean,
|
29
|
-
:standard_deviation => :standardDeviation
|
32
|
+
:standard_deviation => :standardDeviation,
|
33
|
+
:winsorized_amount => :winsorizedAmount
|
30
34
|
}
|
31
35
|
end
|
32
36
|
|
@@ -36,7 +40,8 @@ module Algolia
|
|
36
40
|
:currency => :"String",
|
37
41
|
:revenue => :"Float",
|
38
42
|
:mean => :"Float",
|
39
|
-
:standard_deviation => :"Float"
|
43
|
+
:standard_deviation => :"Float",
|
44
|
+
:winsorized_amount => :"Float"
|
40
45
|
}
|
41
46
|
end
|
42
47
|
|
@@ -82,6 +87,10 @@ module Algolia
|
|
82
87
|
if attributes.key?(:standard_deviation)
|
83
88
|
self.standard_deviation = attributes[:standard_deviation]
|
84
89
|
end
|
90
|
+
|
91
|
+
if attributes.key?(:winsorized_amount)
|
92
|
+
self.winsorized_amount = attributes[:winsorized_amount]
|
93
|
+
end
|
85
94
|
end
|
86
95
|
|
87
96
|
# Checks equality by comparing each attribute.
|
@@ -92,7 +101,8 @@ module Algolia
|
|
92
101
|
currency == other.currency &&
|
93
102
|
revenue == other.revenue &&
|
94
103
|
mean == other.mean &&
|
95
|
-
standard_deviation == other.standard_deviation
|
104
|
+
standard_deviation == other.standard_deviation &&
|
105
|
+
winsorized_amount == other.winsorized_amount
|
96
106
|
end
|
97
107
|
|
98
108
|
# @see the `==` method
|
@@ -104,7 +114,7 @@ module Algolia
|
|
104
114
|
# Calculates hash code according to all attributes.
|
105
115
|
# @return [Integer] Hash code
|
106
116
|
def hash
|
107
|
-
[currency, revenue, mean, standard_deviation].hash
|
117
|
+
[currency, revenue, mean, standard_deviation, winsorized_amount].hash
|
108
118
|
end
|
109
119
|
|
110
120
|
# Builds the object from hash
|
data/lib/algolia/version.rb
CHANGED