stormgate_world 1.0.0 → 1.1.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.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +73 -0
  3. data/README.md +20 -5
  4. data/docs/ActivityStatistics.md +24 -0
  5. data/docs/ActivityStatisticsActivity.md +20 -0
  6. data/docs/ActivityStatisticsEntry.md +24 -0
  7. data/docs/Aggregation.md +15 -0
  8. data/docs/CountriesStatistics.md +24 -0
  9. data/docs/CountriesStatisticsEntry.md +22 -0
  10. data/docs/DumpFormat.md +15 -0
  11. data/docs/LeaderboardEntriesApi.md +10 -4
  12. data/docs/LeaderboardEntryHistory.md +7 -1
  13. data/docs/LeaderboardEntryHistoryRow.md +22 -0
  14. data/docs/LeaderboardEntryResponse.md +3 -1
  15. data/docs/LeaderboardsApi.md +10 -5
  16. data/docs/League.md +15 -0
  17. data/docs/MatchParticipantPlayerLeaderboardEntryResponse.md +1 -1
  18. data/docs/PlayerMatchesResponse.md +2 -0
  19. data/docs/PlayerResponse.md +5 -1
  20. data/docs/PlayersApi.md +14 -146
  21. data/docs/Resolution.md +15 -0
  22. data/docs/ServersStatistics.md +24 -0
  23. data/docs/ServersStatisticsEntry.md +22 -0
  24. data/docs/StatisticsApi.md +205 -2
  25. data/docs/StatsByTime.md +1 -1
  26. data/lib/stormgate_world/api/leaderboard_entries_api.rb +6 -0
  27. data/lib/stormgate_world/api/leaderboards_api.rb +3 -0
  28. data/lib/stormgate_world/api/players_api.rb +20 -129
  29. data/lib/stormgate_world/api/statistics_api.rb +186 -2
  30. data/lib/stormgate_world/models/activity_statistics.rb +269 -0
  31. data/lib/stormgate_world/models/activity_statistics_activity.rb +239 -0
  32. data/lib/stormgate_world/models/activity_statistics_entry.rb +263 -0
  33. data/lib/stormgate_world/models/aggregation.rb +41 -0
  34. data/lib/stormgate_world/models/countries_statistics.rb +271 -0
  35. data/lib/stormgate_world/models/countries_statistics_entry.rb +241 -0
  36. data/lib/stormgate_world/models/dump_format.rb +40 -0
  37. data/lib/stormgate_world/models/leaderboard_entry_history.rb +72 -2
  38. data/lib/stormgate_world/models/leaderboard_entry_history_row.rb +241 -0
  39. data/lib/stormgate_world/models/leaderboard_entry_response.rb +12 -2
  40. data/lib/stormgate_world/models/league.rb +45 -0
  41. data/lib/stormgate_world/models/match_participant_player_leaderboard_entry_response.rb +23 -1
  42. data/lib/stormgate_world/models/player_matches_response.rb +36 -1
  43. data/lib/stormgate_world/models/player_response.rb +25 -5
  44. data/lib/stormgate_world/models/race.rb +1 -2
  45. data/lib/stormgate_world/models/resolution.rb +42 -0
  46. data/lib/stormgate_world/models/servers_statistics.rb +271 -0
  47. data/lib/stormgate_world/models/servers_statistics_entry.rb +253 -0
  48. data/lib/stormgate_world/models/stats_by_time.rb +23 -1
  49. data/lib/stormgate_world/version.rb +1 -1
  50. data/lib/stormgate_world.rb +12 -2
  51. data/pkg/stormgate_world-1.0.0.gem +0 -0
  52. data/spec/models/activity_statistics_activity_spec.rb +42 -0
  53. data/spec/models/activity_statistics_entry_spec.rb +54 -0
  54. data/spec/models/activity_statistics_spec.rb +54 -0
  55. data/spec/models/aggregation_spec.rb +30 -0
  56. data/spec/models/countries_statistics_entry_spec.rb +48 -0
  57. data/spec/models/countries_statistics_spec.rb +54 -0
  58. data/spec/models/dump_format_spec.rb +30 -0
  59. data/spec/models/leaderboard_entry_history_row_spec.rb +48 -0
  60. data/spec/models/league_spec.rb +30 -0
  61. data/spec/models/resolution_spec.rb +30 -0
  62. data/spec/models/servers_statistics_entry_spec.rb +48 -0
  63. data/spec/models/servers_statistics_spec.rb +54 -0
  64. data/stormgate_world.json +1 -1
  65. metadata +52 -2
@@ -0,0 +1,271 @@
1
+ =begin
2
+ #api
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 0.1.1
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 7.3.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module StormgateWorld
17
+ class ServersStatistics
18
+ attr_accessor :cached_at
19
+
20
+ attr_accessor :since
21
+
22
+ attr_accessor :_until
23
+
24
+ attr_accessor :servers
25
+
26
+ # Attribute mapping from ruby-style variable name to JSON key.
27
+ def self.attribute_map
28
+ {
29
+ :'cached_at' => :'cached_at',
30
+ :'since' => :'since',
31
+ :'_until' => :'until',
32
+ :'servers' => :'servers'
33
+ }
34
+ end
35
+
36
+ # Returns all the JSON keys this model knows about
37
+ def self.acceptable_attributes
38
+ attribute_map.values
39
+ end
40
+
41
+ # Attribute type mapping.
42
+ def self.openapi_types
43
+ {
44
+ :'cached_at' => :'Time',
45
+ :'since' => :'Date',
46
+ :'_until' => :'Date',
47
+ :'servers' => :'Array<ServersStatisticsEntry>'
48
+ }
49
+ end
50
+
51
+ # List of attributes with nullable: true
52
+ def self.openapi_nullable
53
+ Set.new([
54
+ ])
55
+ end
56
+
57
+ # Initializes the object
58
+ # @param [Hash] attributes Model attributes in the form of hash
59
+ def initialize(attributes = {})
60
+ if (!attributes.is_a?(Hash))
61
+ fail ArgumentError, "The input argument (attributes) must be a hash in `StormgateWorld::ServersStatistics` initialize method"
62
+ end
63
+
64
+ # check to see if the attribute exists and convert string to symbol for hash key
65
+ attributes = attributes.each_with_object({}) { |(k, v), h|
66
+ if (!self.class.attribute_map.key?(k.to_sym))
67
+ fail ArgumentError, "`#{k}` is not a valid attribute in `StormgateWorld::ServersStatistics`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
68
+ end
69
+ h[k.to_sym] = v
70
+ }
71
+
72
+ if attributes.key?(:'cached_at')
73
+ self.cached_at = attributes[:'cached_at']
74
+ else
75
+ self.cached_at = nil
76
+ end
77
+
78
+ if attributes.key?(:'since')
79
+ self.since = attributes[:'since']
80
+ else
81
+ self.since = nil
82
+ end
83
+
84
+ if attributes.key?(:'_until')
85
+ self._until = attributes[:'_until']
86
+ else
87
+ self._until = nil
88
+ end
89
+
90
+ if attributes.key?(:'servers')
91
+ if (value = attributes[:'servers']).is_a?(Array)
92
+ self.servers = value
93
+ end
94
+ else
95
+ self.servers = nil
96
+ end
97
+ end
98
+
99
+ # Show invalid properties with the reasons. Usually used together with valid?
100
+ # @return Array for valid properties with the reasons
101
+ def list_invalid_properties
102
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
103
+ invalid_properties = Array.new
104
+ if @cached_at.nil?
105
+ invalid_properties.push('invalid value for "cached_at", cached_at cannot be nil.')
106
+ end
107
+
108
+ if @since.nil?
109
+ invalid_properties.push('invalid value for "since", since cannot be nil.')
110
+ end
111
+
112
+ if @_until.nil?
113
+ invalid_properties.push('invalid value for "_until", _until cannot be nil.')
114
+ end
115
+
116
+ if @servers.nil?
117
+ invalid_properties.push('invalid value for "servers", servers cannot be nil.')
118
+ end
119
+
120
+ invalid_properties
121
+ end
122
+
123
+ # Check to see if the all the properties in the model are valid
124
+ # @return true if the model is valid
125
+ def valid?
126
+ warn '[DEPRECATED] the `valid?` method is obsolete'
127
+ return false if @cached_at.nil?
128
+ return false if @since.nil?
129
+ return false if @_until.nil?
130
+ return false if @servers.nil?
131
+ true
132
+ end
133
+
134
+ # Checks equality by comparing each attribute.
135
+ # @param [Object] Object to be compared
136
+ def ==(o)
137
+ return true if self.equal?(o)
138
+ self.class == o.class &&
139
+ cached_at == o.cached_at &&
140
+ since == o.since &&
141
+ _until == o._until &&
142
+ servers == o.servers
143
+ end
144
+
145
+ # @see the `==` method
146
+ # @param [Object] Object to be compared
147
+ def eql?(o)
148
+ self == o
149
+ end
150
+
151
+ # Calculates hash code according to all attributes.
152
+ # @return [Integer] Hash code
153
+ def hash
154
+ [cached_at, since, _until, servers].hash
155
+ end
156
+
157
+ # Builds the object from hash
158
+ # @param [Hash] attributes Model attributes in the form of hash
159
+ # @return [Object] Returns the model itself
160
+ def self.build_from_hash(attributes)
161
+ return nil unless attributes.is_a?(Hash)
162
+ attributes = attributes.transform_keys(&:to_sym)
163
+ transformed_hash = {}
164
+ openapi_types.each_pair do |key, type|
165
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
166
+ transformed_hash["#{key}"] = nil
167
+ elsif type =~ /\AArray<(.*)>/i
168
+ # check to ensure the input is an array given that the attribute
169
+ # is documented as an array but the input is not
170
+ if attributes[attribute_map[key]].is_a?(Array)
171
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
172
+ end
173
+ elsif !attributes[attribute_map[key]].nil?
174
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
175
+ end
176
+ end
177
+ new(transformed_hash)
178
+ end
179
+
180
+ # Deserializes the data based on type
181
+ # @param string type Data type
182
+ # @param string value Value to be deserialized
183
+ # @return [Object] Deserialized data
184
+ def self._deserialize(type, value)
185
+ case type.to_sym
186
+ when :Time
187
+ Time.parse(value)
188
+ when :Date
189
+ Date.parse(value)
190
+ when :String
191
+ value.to_s
192
+ when :Integer
193
+ value.to_i
194
+ when :Float
195
+ value.to_f
196
+ when :Boolean
197
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
198
+ true
199
+ else
200
+ false
201
+ end
202
+ when :Object
203
+ # generic object (usually a Hash), return directly
204
+ value
205
+ when /\AArray<(?<inner_type>.+)>\z/
206
+ inner_type = Regexp.last_match[:inner_type]
207
+ value.map { |v| _deserialize(inner_type, v) }
208
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
209
+ k_type = Regexp.last_match[:k_type]
210
+ v_type = Regexp.last_match[:v_type]
211
+ {}.tap do |hash|
212
+ value.each do |k, v|
213
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
214
+ end
215
+ end
216
+ else # model
217
+ # models (e.g. Pet) or oneOf
218
+ klass = StormgateWorld.const_get(type)
219
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
220
+ end
221
+ end
222
+
223
+ # Returns the string representation of the object
224
+ # @return [String] String presentation of the object
225
+ def to_s
226
+ to_hash.to_s
227
+ end
228
+
229
+ # to_body is an alias to to_hash (backward compatibility)
230
+ # @return [Hash] Returns the object in the form of hash
231
+ def to_body
232
+ to_hash
233
+ end
234
+
235
+ # Returns the object in the form of hash
236
+ # @return [Hash] Returns the object in the form of hash
237
+ def to_hash
238
+ hash = {}
239
+ self.class.attribute_map.each_pair do |attr, param|
240
+ value = self.send(attr)
241
+ if value.nil?
242
+ is_nullable = self.class.openapi_nullable.include?(attr)
243
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
244
+ end
245
+
246
+ hash[param] = _to_hash(value)
247
+ end
248
+ hash
249
+ end
250
+
251
+ # Outputs non-array value in the form of hash
252
+ # For object, use to_hash. Otherwise, just return the value
253
+ # @param [Object] value Any valid value
254
+ # @return [Hash] Returns the value in the form of hash
255
+ def _to_hash(value)
256
+ if value.is_a?(Array)
257
+ value.compact.map { |v| _to_hash(v) }
258
+ elsif value.is_a?(Hash)
259
+ {}.tap do |hash|
260
+ value.each { |k, v| hash[k] = _to_hash(v) }
261
+ end
262
+ elsif value.respond_to? :to_hash
263
+ value.to_hash
264
+ else
265
+ value
266
+ end
267
+ end
268
+
269
+ end
270
+
271
+ end
@@ -0,0 +1,253 @@
1
+ =begin
2
+ #api
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 0.1.1
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 7.3.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module StormgateWorld
17
+ class ServersStatisticsEntry
18
+ attr_accessor :server
19
+
20
+ attr_accessor :matches
21
+
22
+ attr_accessor :players
23
+
24
+ # Attribute mapping from ruby-style variable name to JSON key.
25
+ def self.attribute_map
26
+ {
27
+ :'server' => :'server',
28
+ :'matches' => :'matches',
29
+ :'players' => :'players'
30
+ }
31
+ end
32
+
33
+ # Returns all the JSON keys this model knows about
34
+ def self.acceptable_attributes
35
+ attribute_map.values
36
+ end
37
+
38
+ # Attribute type mapping.
39
+ def self.openapi_types
40
+ {
41
+ :'server' => :'String',
42
+ :'matches' => :'Integer',
43
+ :'players' => :'Integer'
44
+ }
45
+ end
46
+
47
+ # List of attributes with nullable: true
48
+ def self.openapi_nullable
49
+ Set.new([
50
+ ])
51
+ end
52
+
53
+ # Initializes the object
54
+ # @param [Hash] attributes Model attributes in the form of hash
55
+ def initialize(attributes = {})
56
+ if (!attributes.is_a?(Hash))
57
+ fail ArgumentError, "The input argument (attributes) must be a hash in `StormgateWorld::ServersStatisticsEntry` initialize method"
58
+ end
59
+
60
+ # check to see if the attribute exists and convert string to symbol for hash key
61
+ attributes = attributes.each_with_object({}) { |(k, v), h|
62
+ if (!self.class.attribute_map.key?(k.to_sym))
63
+ fail ArgumentError, "`#{k}` is not a valid attribute in `StormgateWorld::ServersStatisticsEntry`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
64
+ end
65
+ h[k.to_sym] = v
66
+ }
67
+
68
+ if attributes.key?(:'server')
69
+ self.server = attributes[:'server']
70
+ else
71
+ self.server = nil
72
+ end
73
+
74
+ if attributes.key?(:'matches')
75
+ self.matches = attributes[:'matches']
76
+ else
77
+ self.matches = nil
78
+ end
79
+
80
+ if attributes.key?(:'players')
81
+ self.players = attributes[:'players']
82
+ else
83
+ self.players = nil
84
+ end
85
+ end
86
+
87
+ # Show invalid properties with the reasons. Usually used together with valid?
88
+ # @return Array for valid properties with the reasons
89
+ def list_invalid_properties
90
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
91
+ invalid_properties = Array.new
92
+ if @server.nil?
93
+ invalid_properties.push('invalid value for "server", server cannot be nil.')
94
+ end
95
+
96
+ if @matches.nil?
97
+ invalid_properties.push('invalid value for "matches", matches cannot be nil.')
98
+ end
99
+
100
+ if @players.nil?
101
+ invalid_properties.push('invalid value for "players", players cannot be nil.')
102
+ end
103
+
104
+ invalid_properties
105
+ end
106
+
107
+ # Check to see if the all the properties in the model are valid
108
+ # @return true if the model is valid
109
+ def valid?
110
+ warn '[DEPRECATED] the `valid?` method is obsolete'
111
+ return false if @server.nil?
112
+ return false if @matches.nil?
113
+ return false if @players.nil?
114
+ true
115
+ end
116
+
117
+ # Checks equality by comparing each attribute.
118
+ # @param [Object] Object to be compared
119
+ def ==(o)
120
+ return true if self.equal?(o)
121
+ self.class == o.class &&
122
+ server == o.server &&
123
+ matches == o.matches &&
124
+ players == o.players
125
+ end
126
+
127
+ # @see the `==` method
128
+ # @param [Object] Object to be compared
129
+ def eql?(o)
130
+ self == o
131
+ end
132
+
133
+ # Calculates hash code according to all attributes.
134
+ # @return [Integer] Hash code
135
+ def hash
136
+ [server, matches, players].hash
137
+ end
138
+
139
+ # Builds the object from hash
140
+ # @param [Hash] attributes Model attributes in the form of hash
141
+ # @return [Object] Returns the model itself
142
+ def self.build_from_hash(attributes)
143
+ return nil unless attributes.is_a?(Hash)
144
+ attributes = attributes.transform_keys(&:to_sym)
145
+ transformed_hash = {}
146
+ openapi_types.each_pair do |key, type|
147
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
148
+ transformed_hash["#{key}"] = nil
149
+ elsif type =~ /\AArray<(.*)>/i
150
+ # check to ensure the input is an array given that the attribute
151
+ # is documented as an array but the input is not
152
+ if attributes[attribute_map[key]].is_a?(Array)
153
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
154
+ end
155
+ elsif !attributes[attribute_map[key]].nil?
156
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
157
+ end
158
+ end
159
+ new(transformed_hash)
160
+ end
161
+
162
+ # Deserializes the data based on type
163
+ # @param string type Data type
164
+ # @param string value Value to be deserialized
165
+ # @return [Object] Deserialized data
166
+ def self._deserialize(type, value)
167
+ case type.to_sym
168
+ when :Time
169
+ Time.parse(value)
170
+ when :Date
171
+ Date.parse(value)
172
+ when :String
173
+ value.to_s
174
+ when :Integer
175
+ value.to_i
176
+ when :Float
177
+ value.to_f
178
+ when :Boolean
179
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
180
+ true
181
+ else
182
+ false
183
+ end
184
+ when :Object
185
+ # generic object (usually a Hash), return directly
186
+ value
187
+ when /\AArray<(?<inner_type>.+)>\z/
188
+ inner_type = Regexp.last_match[:inner_type]
189
+ value.map { |v| _deserialize(inner_type, v) }
190
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
191
+ k_type = Regexp.last_match[:k_type]
192
+ v_type = Regexp.last_match[:v_type]
193
+ {}.tap do |hash|
194
+ value.each do |k, v|
195
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
196
+ end
197
+ end
198
+ else # model
199
+ # models (e.g. Pet) or oneOf
200
+ klass = StormgateWorld.const_get(type)
201
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
202
+ end
203
+ end
204
+
205
+ # Returns the string representation of the object
206
+ # @return [String] String presentation of the object
207
+ def to_s
208
+ to_hash.to_s
209
+ end
210
+
211
+ # to_body is an alias to to_hash (backward compatibility)
212
+ # @return [Hash] Returns the object in the form of hash
213
+ def to_body
214
+ to_hash
215
+ end
216
+
217
+ # Returns the object in the form of hash
218
+ # @return [Hash] Returns the object in the form of hash
219
+ def to_hash
220
+ hash = {}
221
+ self.class.attribute_map.each_pair do |attr, param|
222
+ value = self.send(attr)
223
+ if value.nil?
224
+ is_nullable = self.class.openapi_nullable.include?(attr)
225
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
226
+ end
227
+
228
+ hash[param] = _to_hash(value)
229
+ end
230
+ hash
231
+ end
232
+
233
+ # Outputs non-array value in the form of hash
234
+ # For object, use to_hash. Otherwise, just return the value
235
+ # @param [Object] value Any valid value
236
+ # @return [Hash] Returns the value in the form of hash
237
+ def _to_hash(value)
238
+ if value.is_a?(Array)
239
+ value.compact.map { |v| _to_hash(v) }
240
+ elsif value.is_a?(Hash)
241
+ {}.tap do |hash|
242
+ value.each { |k, v| hash[k] = _to_hash(v) }
243
+ end
244
+ elsif value.respond_to? :to_hash
245
+ value.to_hash
246
+ else
247
+ value
248
+ end
249
+ end
250
+
251
+ end
252
+
253
+ end
@@ -29,6 +29,28 @@ module StormgateWorld
29
29
 
30
30
  attr_accessor :match_length
31
31
 
32
+ class EnumAttributeValidator
33
+ attr_reader :datatype
34
+ attr_reader :allowable_values
35
+
36
+ def initialize(datatype, allowable_values)
37
+ @allowable_values = allowable_values.map do |value|
38
+ case datatype.to_s
39
+ when /Integer/i
40
+ value.to_i
41
+ when /Float/i
42
+ value.to_f
43
+ else
44
+ value
45
+ end
46
+ end
47
+ end
48
+
49
+ def valid?(value)
50
+ !value || allowable_values.include?(value)
51
+ end
52
+ end
53
+
32
54
  # Attribute mapping from ruby-style variable name to JSON key.
33
55
  def self.attribute_map
34
56
  {
@@ -54,7 +76,7 @@ module StormgateWorld
54
76
  :'updated_at' => :'Time',
55
77
  :'period' => :'String',
56
78
  :'count' => :'Integer',
57
- :'league' => :'String',
79
+ :'league' => :'League',
58
80
  :'races' => :'Array<StatsByTimeEntry>',
59
81
  :'match_length' => :'StatsByTimeMatchLength'
60
82
  }
@@ -11,5 +11,5 @@ OpenAPI Generator version: 7.3.0
11
11
  =end
12
12
 
13
13
  module StormgateWorld
14
- VERSION = '1.0.0'
14
+ VERSION = '1.1.0'
15
15
  end
@@ -17,14 +17,22 @@ require 'stormgate_world/version'
17
17
  require 'stormgate_world/configuration'
18
18
 
19
19
  # Models
20
+ require 'stormgate_world/models/activity_statistics'
21
+ require 'stormgate_world/models/activity_statistics_activity'
22
+ require 'stormgate_world/models/activity_statistics_entry'
23
+ require 'stormgate_world/models/aggregation'
24
+ require 'stormgate_world/models/countries_statistics'
25
+ require 'stormgate_world/models/countries_statistics_entry'
26
+ require 'stormgate_world/models/dump_format'
20
27
  require 'stormgate_world/models/error_response'
21
28
  require 'stormgate_world/models/leaderboard'
22
29
  require 'stormgate_world/models/leaderboard_dump_response'
23
30
  require 'stormgate_world/models/leaderboard_entry_history'
24
- require 'stormgate_world/models/leaderboard_entry_history_entry'
31
+ require 'stormgate_world/models/leaderboard_entry_history_row'
25
32
  require 'stormgate_world/models/leaderboard_entry_response'
26
33
  require 'stormgate_world/models/leaderboard_order'
27
34
  require 'stormgate_world/models/leaderboard_response'
35
+ require 'stormgate_world/models/league'
28
36
  require 'stormgate_world/models/match_participant_player_leaderboard_entry_response'
29
37
  require 'stormgate_world/models/match_participant_player_response'
30
38
  require 'stormgate_world/models/match_participant_response'
@@ -40,13 +48,15 @@ require 'stormgate_world/models/player_matchups_stats_entry'
40
48
  require 'stormgate_world/models/player_matchups_stats_matchup'
41
49
  require 'stormgate_world/models/player_opponents_stats'
42
50
  require 'stormgate_world/models/player_opponents_stats_opponent'
43
- require 'stormgate_world/models/player_preferences'
44
51
  require 'stormgate_world/models/player_response'
45
52
  require 'stormgate_world/models/player_stats_entry'
46
53
  require 'stormgate_world/models/player_stats_entry_aggregated'
47
54
  require 'stormgate_world/models/player_stats_entry_num_breakdown'
48
55
  require 'stormgate_world/models/profile_privacy'
49
56
  require 'stormgate_world/models/race'
57
+ require 'stormgate_world/models/resolution'
58
+ require 'stormgate_world/models/servers_statistics'
59
+ require 'stormgate_world/models/servers_statistics_entry'
50
60
  require 'stormgate_world/models/stats_by_time'
51
61
  require 'stormgate_world/models/stats_by_time_entry'
52
62
  require 'stormgate_world/models/stats_by_time_history_point'
Binary file
@@ -0,0 +1,42 @@
1
+ =begin
2
+ #api
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 0.1.1
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 7.3.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for StormgateWorld::ActivityStatisticsActivity
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe StormgateWorld::ActivityStatisticsActivity do
21
+ let(:instance) { StormgateWorld::ActivityStatisticsActivity.new }
22
+
23
+ describe 'test an instance of ActivityStatisticsActivity' do
24
+ it 'should create an instance of ActivityStatisticsActivity' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(StormgateWorld::ActivityStatisticsActivity)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "aggregated"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "history"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ end