@@ -20,13 +20,17 @@ class Currency
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 @@ def self.types_mapping
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 @@ def initialize(attributes = {})
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 @@ def ==(other)
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 @@ def eql?(other)
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
0 commit comments