stormgate_world 1.0.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 (137) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +141 -0
  4. data/Rakefile +10 -0
  5. data/docs/ErrorResponse.md +26 -0
  6. data/docs/Leaderboard.md +15 -0
  7. data/docs/LeaderboardDumpResponse.md +22 -0
  8. data/docs/LeaderboardEntriesApi.md +70 -0
  9. data/docs/LeaderboardEntryHistory.md +18 -0
  10. data/docs/LeaderboardEntryHistoryEntry.md +24 -0
  11. data/docs/LeaderboardEntryResponse.md +52 -0
  12. data/docs/LeaderboardOrder.md +15 -0
  13. data/docs/LeaderboardResponse.md +24 -0
  14. data/docs/LeaderboardsApi.md +140 -0
  15. data/docs/MatchParticipantPlayerLeaderboardEntryResponse.md +32 -0
  16. data/docs/MatchParticipantPlayerResponse.md +22 -0
  17. data/docs/MatchParticipantResponse.md +38 -0
  18. data/docs/MatchResponse.md +34 -0
  19. data/docs/MatchResult.md +15 -0
  20. data/docs/MatchState.md +15 -0
  21. data/docs/MatchesApi.md +76 -0
  22. data/docs/MatchesResponse.md +24 -0
  23. data/docs/PlayerActivityStats.md +24 -0
  24. data/docs/PlayerActivityStatsRace.md +20 -0
  25. data/docs/PlayerMatchesResponse.md +22 -0
  26. data/docs/PlayerMatchupsStats.md +20 -0
  27. data/docs/PlayerMatchupsStatsEntry.md +34 -0
  28. data/docs/PlayerMatchupsStatsMatchup.md +24 -0
  29. data/docs/PlayerOpponentsStats.md +22 -0
  30. data/docs/PlayerOpponentsStatsOpponent.md +34 -0
  31. data/docs/PlayerPreferences.md +18 -0
  32. data/docs/PlayerResponse.md +28 -0
  33. data/docs/PlayerStatsEntry.md +36 -0
  34. data/docs/PlayerStatsEntryAggregated.md +34 -0
  35. data/docs/PlayerStatsEntryNumBreakdown.md +24 -0
  36. data/docs/PlayersApi.md +531 -0
  37. data/docs/ProfilePrivacy.md +15 -0
  38. data/docs/Race.md +15 -0
  39. data/docs/StatisticsApi.md +72 -0
  40. data/docs/StatsByTime.md +30 -0
  41. data/docs/StatsByTimeEntry.md +22 -0
  42. data/docs/StatsByTimeHistoryPoint.md +34 -0
  43. data/docs/StatsByTimeMatchLength.md +20 -0
  44. data/docs/StatsByTimeMatchLengthEntry.md +28 -0
  45. data/git_push.sh +57 -0
  46. data/lib/stormgate_world/api/leaderboard_entries_api.rb +81 -0
  47. data/lib/stormgate_world/api/leaderboards_api.rb +151 -0
  48. data/lib/stormgate_world/api/matches_api.rb +92 -0
  49. data/lib/stormgate_world/api/players_api.rb +512 -0
  50. data/lib/stormgate_world/api/statistics_api.rb +78 -0
  51. data/lib/stormgate_world/api_client.rb +394 -0
  52. data/lib/stormgate_world/api_error.rb +58 -0
  53. data/lib/stormgate_world/configuration.rb +298 -0
  54. data/lib/stormgate_world/models/error_response.rb +289 -0
  55. data/lib/stormgate_world/models/leaderboard.rb +41 -0
  56. data/lib/stormgate_world/models/leaderboard_dump_response.rb +274 -0
  57. data/lib/stormgate_world/models/leaderboard_entry_history.rb +223 -0
  58. data/lib/stormgate_world/models/leaderboard_entry_history_entry.rb +257 -0
  59. data/lib/stormgate_world/models/leaderboard_entry_response.rb +461 -0
  60. data/lib/stormgate_world/models/leaderboard_order.rb +40 -0
  61. data/lib/stormgate_world/models/leaderboard_response.rb +328 -0
  62. data/lib/stormgate_world/models/match_participant_player_leaderboard_entry_response.rb +309 -0
  63. data/lib/stormgate_world/models/match_participant_player_response.rb +241 -0
  64. data/lib/stormgate_world/models/match_participant_response.rb +361 -0
  65. data/lib/stormgate_world/models/match_response.rb +355 -0
  66. data/lib/stormgate_world/models/match_result.rb +41 -0
  67. data/lib/stormgate_world/models/match_state.rb +40 -0
  68. data/lib/stormgate_world/models/matches_response.rb +328 -0
  69. data/lib/stormgate_world/models/player_activity_stats.rb +267 -0
  70. data/lib/stormgate_world/models/player_activity_stats_race.rb +233 -0
  71. data/lib/stormgate_world/models/player_matches_response.rb +293 -0
  72. data/lib/stormgate_world/models/player_matchups_stats.rb +239 -0
  73. data/lib/stormgate_world/models/player_matchups_stats_entry.rb +337 -0
  74. data/lib/stormgate_world/models/player_matchups_stats_matchup.rb +293 -0
  75. data/lib/stormgate_world/models/player_opponents_stats.rb +274 -0
  76. data/lib/stormgate_world/models/player_opponents_stats_opponent.rb +343 -0
  77. data/lib/stormgate_world/models/player_preferences.rb +237 -0
  78. data/lib/stormgate_world/models/player_response.rb +285 -0
  79. data/lib/stormgate_world/models/player_stats_entry.rb +369 -0
  80. data/lib/stormgate_world/models/player_stats_entry_aggregated.rb +343 -0
  81. data/lib/stormgate_world/models/player_stats_entry_num_breakdown.rb +245 -0
  82. data/lib/stormgate_world/models/profile_privacy.rb +40 -0
  83. data/lib/stormgate_world/models/race.rb +41 -0
  84. data/lib/stormgate_world/models/stats_by_time.rb +332 -0
  85. data/lib/stormgate_world/models/stats_by_time_entry.rb +277 -0
  86. data/lib/stormgate_world/models/stats_by_time_history_point.rb +303 -0
  87. data/lib/stormgate_world/models/stats_by_time_match_length.rb +239 -0
  88. data/lib/stormgate_world/models/stats_by_time_match_length_entry.rb +265 -0
  89. data/lib/stormgate_world/version.rb +15 -0
  90. data/lib/stormgate_world.rb +79 -0
  91. data/openapitools.json +7 -0
  92. data/pkg/stormgate_world_client-1.0.0.gem +0 -0
  93. data/spec/api/leaderboard_entries_api_spec.rb +45 -0
  94. data/spec/api/leaderboards_api_spec.rb +58 -0
  95. data/spec/api/matches_api_spec.rb +47 -0
  96. data/spec/api/players_api_spec.rb +117 -0
  97. data/spec/api/statistics_api_spec.rb +45 -0
  98. data/spec/models/error_response_spec.rb +60 -0
  99. data/spec/models/leaderboard_dump_response_spec.rb +48 -0
  100. data/spec/models/leaderboard_entry_history_entry_spec.rb +54 -0
  101. data/spec/models/leaderboard_entry_history_spec.rb +36 -0
  102. data/spec/models/leaderboard_entry_response_spec.rb +138 -0
  103. data/spec/models/leaderboard_order_spec.rb +30 -0
  104. data/spec/models/leaderboard_response_spec.rb +54 -0
  105. data/spec/models/leaderboard_spec.rb +30 -0
  106. data/spec/models/match_participant_player_leaderboard_entry_response_spec.rb +78 -0
  107. data/spec/models/match_participant_player_response_spec.rb +48 -0
  108. data/spec/models/match_participant_response_spec.rb +96 -0
  109. data/spec/models/match_response_spec.rb +84 -0
  110. data/spec/models/match_result_spec.rb +30 -0
  111. data/spec/models/match_state_spec.rb +30 -0
  112. data/spec/models/matches_response_spec.rb +54 -0
  113. data/spec/models/player_activity_stats_race_spec.rb +42 -0
  114. data/spec/models/player_activity_stats_spec.rb +54 -0
  115. data/spec/models/player_matches_response_spec.rb +48 -0
  116. data/spec/models/player_matchups_stats_entry_spec.rb +84 -0
  117. data/spec/models/player_matchups_stats_matchup_spec.rb +54 -0
  118. data/spec/models/player_matchups_stats_spec.rb +42 -0
  119. data/spec/models/player_opponents_stats_opponent_spec.rb +84 -0
  120. data/spec/models/player_opponents_stats_spec.rb +48 -0
  121. data/spec/models/player_preferences_spec.rb +36 -0
  122. data/spec/models/player_response_spec.rb +66 -0
  123. data/spec/models/player_stats_entry_aggregated_spec.rb +84 -0
  124. data/spec/models/player_stats_entry_num_breakdown_spec.rb +54 -0
  125. data/spec/models/player_stats_entry_spec.rb +90 -0
  126. data/spec/models/profile_privacy_spec.rb +30 -0
  127. data/spec/models/race_spec.rb +30 -0
  128. data/spec/models/stats_by_time_entry_spec.rb +48 -0
  129. data/spec/models/stats_by_time_history_point_spec.rb +84 -0
  130. data/spec/models/stats_by_time_match_length_entry_spec.rb +66 -0
  131. data/spec/models/stats_by_time_match_length_spec.rb +42 -0
  132. data/spec/models/stats_by_time_spec.rb +72 -0
  133. data/spec/spec_helper.rb +111 -0
  134. data/stormgate_world.gemspec +40 -0
  135. data/stormgate_world.json +1 -0
  136. data/update.sh +4 -0
  137. metadata +260 -0
@@ -0,0 +1,265 @@
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 StatsByTimeMatchLengthEntry
18
+ attr_accessor :date
19
+
20
+ attr_accessor :average
21
+
22
+ attr_accessor :median
23
+
24
+ attr_accessor :p70
25
+
26
+ attr_accessor :p90
27
+
28
+ attr_accessor :p95
29
+
30
+ # Attribute mapping from ruby-style variable name to JSON key.
31
+ def self.attribute_map
32
+ {
33
+ :'date' => :'date',
34
+ :'average' => :'average',
35
+ :'median' => :'median',
36
+ :'p70' => :'p70',
37
+ :'p90' => :'p90',
38
+ :'p95' => :'p95'
39
+ }
40
+ end
41
+
42
+ # Returns all the JSON keys this model knows about
43
+ def self.acceptable_attributes
44
+ attribute_map.values
45
+ end
46
+
47
+ # Attribute type mapping.
48
+ def self.openapi_types
49
+ {
50
+ :'date' => :'Date',
51
+ :'average' => :'Integer',
52
+ :'median' => :'Integer',
53
+ :'p70' => :'Integer',
54
+ :'p90' => :'Integer',
55
+ :'p95' => :'Integer'
56
+ }
57
+ end
58
+
59
+ # List of attributes with nullable: true
60
+ def self.openapi_nullable
61
+ Set.new([
62
+ :'date',
63
+ :'average',
64
+ :'median',
65
+ :'p70',
66
+ :'p90',
67
+ :'p95'
68
+ ])
69
+ end
70
+
71
+ # Initializes the object
72
+ # @param [Hash] attributes Model attributes in the form of hash
73
+ def initialize(attributes = {})
74
+ if (!attributes.is_a?(Hash))
75
+ fail ArgumentError, "The input argument (attributes) must be a hash in `StormgateWorld::StatsByTimeMatchLengthEntry` initialize method"
76
+ end
77
+
78
+ # check to see if the attribute exists and convert string to symbol for hash key
79
+ attributes = attributes.each_with_object({}) { |(k, v), h|
80
+ if (!self.class.attribute_map.key?(k.to_sym))
81
+ fail ArgumentError, "`#{k}` is not a valid attribute in `StormgateWorld::StatsByTimeMatchLengthEntry`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
82
+ end
83
+ h[k.to_sym] = v
84
+ }
85
+
86
+ if attributes.key?(:'date')
87
+ self.date = attributes[:'date']
88
+ end
89
+
90
+ if attributes.key?(:'average')
91
+ self.average = attributes[:'average']
92
+ end
93
+
94
+ if attributes.key?(:'median')
95
+ self.median = attributes[:'median']
96
+ end
97
+
98
+ if attributes.key?(:'p70')
99
+ self.p70 = attributes[:'p70']
100
+ end
101
+
102
+ if attributes.key?(:'p90')
103
+ self.p90 = attributes[:'p90']
104
+ end
105
+
106
+ if attributes.key?(:'p95')
107
+ self.p95 = attributes[:'p95']
108
+ end
109
+ end
110
+
111
+ # Show invalid properties with the reasons. Usually used together with valid?
112
+ # @return Array for valid properties with the reasons
113
+ def list_invalid_properties
114
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
115
+ invalid_properties = Array.new
116
+ invalid_properties
117
+ end
118
+
119
+ # Check to see if the all the properties in the model are valid
120
+ # @return true if the model is valid
121
+ def valid?
122
+ warn '[DEPRECATED] the `valid?` method is obsolete'
123
+ true
124
+ end
125
+
126
+ # Checks equality by comparing each attribute.
127
+ # @param [Object] Object to be compared
128
+ def ==(o)
129
+ return true if self.equal?(o)
130
+ self.class == o.class &&
131
+ date == o.date &&
132
+ average == o.average &&
133
+ median == o.median &&
134
+ p70 == o.p70 &&
135
+ p90 == o.p90 &&
136
+ p95 == o.p95
137
+ end
138
+
139
+ # @see the `==` method
140
+ # @param [Object] Object to be compared
141
+ def eql?(o)
142
+ self == o
143
+ end
144
+
145
+ # Calculates hash code according to all attributes.
146
+ # @return [Integer] Hash code
147
+ def hash
148
+ [date, average, median, p70, p90, p95].hash
149
+ end
150
+
151
+ # Builds the object from hash
152
+ # @param [Hash] attributes Model attributes in the form of hash
153
+ # @return [Object] Returns the model itself
154
+ def self.build_from_hash(attributes)
155
+ return nil unless attributes.is_a?(Hash)
156
+ attributes = attributes.transform_keys(&:to_sym)
157
+ transformed_hash = {}
158
+ openapi_types.each_pair do |key, type|
159
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
160
+ transformed_hash["#{key}"] = nil
161
+ elsif type =~ /\AArray<(.*)>/i
162
+ # check to ensure the input is an array given that the attribute
163
+ # is documented as an array but the input is not
164
+ if attributes[attribute_map[key]].is_a?(Array)
165
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
166
+ end
167
+ elsif !attributes[attribute_map[key]].nil?
168
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
169
+ end
170
+ end
171
+ new(transformed_hash)
172
+ end
173
+
174
+ # Deserializes the data based on type
175
+ # @param string type Data type
176
+ # @param string value Value to be deserialized
177
+ # @return [Object] Deserialized data
178
+ def self._deserialize(type, value)
179
+ case type.to_sym
180
+ when :Time
181
+ Time.parse(value)
182
+ when :Date
183
+ Date.parse(value)
184
+ when :String
185
+ value.to_s
186
+ when :Integer
187
+ value.to_i
188
+ when :Float
189
+ value.to_f
190
+ when :Boolean
191
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
192
+ true
193
+ else
194
+ false
195
+ end
196
+ when :Object
197
+ # generic object (usually a Hash), return directly
198
+ value
199
+ when /\AArray<(?<inner_type>.+)>\z/
200
+ inner_type = Regexp.last_match[:inner_type]
201
+ value.map { |v| _deserialize(inner_type, v) }
202
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
203
+ k_type = Regexp.last_match[:k_type]
204
+ v_type = Regexp.last_match[:v_type]
205
+ {}.tap do |hash|
206
+ value.each do |k, v|
207
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
208
+ end
209
+ end
210
+ else # model
211
+ # models (e.g. Pet) or oneOf
212
+ klass = StormgateWorld.const_get(type)
213
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
214
+ end
215
+ end
216
+
217
+ # Returns the string representation of the object
218
+ # @return [String] String presentation of the object
219
+ def to_s
220
+ to_hash.to_s
221
+ end
222
+
223
+ # to_body is an alias to to_hash (backward compatibility)
224
+ # @return [Hash] Returns the object in the form of hash
225
+ def to_body
226
+ to_hash
227
+ end
228
+
229
+ # Returns the object in the form of hash
230
+ # @return [Hash] Returns the object in the form of hash
231
+ def to_hash
232
+ hash = {}
233
+ self.class.attribute_map.each_pair do |attr, param|
234
+ value = self.send(attr)
235
+ if value.nil?
236
+ is_nullable = self.class.openapi_nullable.include?(attr)
237
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
238
+ end
239
+
240
+ hash[param] = _to_hash(value)
241
+ end
242
+ hash
243
+ end
244
+
245
+ # Outputs non-array value in the form of hash
246
+ # For object, use to_hash. Otherwise, just return the value
247
+ # @param [Object] value Any valid value
248
+ # @return [Hash] Returns the value in the form of hash
249
+ def _to_hash(value)
250
+ if value.is_a?(Array)
251
+ value.compact.map { |v| _to_hash(v) }
252
+ elsif value.is_a?(Hash)
253
+ {}.tap do |hash|
254
+ value.each { |k, v| hash[k] = _to_hash(v) }
255
+ end
256
+ elsif value.respond_to? :to_hash
257
+ value.to_hash
258
+ else
259
+ value
260
+ end
261
+ end
262
+
263
+ end
264
+
265
+ end
@@ -0,0 +1,15 @@
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
+ module StormgateWorld
14
+ VERSION = '1.0.0'
15
+ end
@@ -0,0 +1,79 @@
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
+ # Common files
14
+ require 'stormgate_world/api_client'
15
+ require 'stormgate_world/api_error'
16
+ require 'stormgate_world/version'
17
+ require 'stormgate_world/configuration'
18
+
19
+ # Models
20
+ require 'stormgate_world/models/error_response'
21
+ require 'stormgate_world/models/leaderboard'
22
+ require 'stormgate_world/models/leaderboard_dump_response'
23
+ require 'stormgate_world/models/leaderboard_entry_history'
24
+ require 'stormgate_world/models/leaderboard_entry_history_entry'
25
+ require 'stormgate_world/models/leaderboard_entry_response'
26
+ require 'stormgate_world/models/leaderboard_order'
27
+ require 'stormgate_world/models/leaderboard_response'
28
+ require 'stormgate_world/models/match_participant_player_leaderboard_entry_response'
29
+ require 'stormgate_world/models/match_participant_player_response'
30
+ require 'stormgate_world/models/match_participant_response'
31
+ require 'stormgate_world/models/match_response'
32
+ require 'stormgate_world/models/match_result'
33
+ require 'stormgate_world/models/match_state'
34
+ require 'stormgate_world/models/matches_response'
35
+ require 'stormgate_world/models/player_activity_stats'
36
+ require 'stormgate_world/models/player_activity_stats_race'
37
+ require 'stormgate_world/models/player_matches_response'
38
+ require 'stormgate_world/models/player_matchups_stats'
39
+ require 'stormgate_world/models/player_matchups_stats_entry'
40
+ require 'stormgate_world/models/player_matchups_stats_matchup'
41
+ require 'stormgate_world/models/player_opponents_stats'
42
+ require 'stormgate_world/models/player_opponents_stats_opponent'
43
+ require 'stormgate_world/models/player_preferences'
44
+ require 'stormgate_world/models/player_response'
45
+ require 'stormgate_world/models/player_stats_entry'
46
+ require 'stormgate_world/models/player_stats_entry_aggregated'
47
+ require 'stormgate_world/models/player_stats_entry_num_breakdown'
48
+ require 'stormgate_world/models/profile_privacy'
49
+ require 'stormgate_world/models/race'
50
+ require 'stormgate_world/models/stats_by_time'
51
+ require 'stormgate_world/models/stats_by_time_entry'
52
+ require 'stormgate_world/models/stats_by_time_history_point'
53
+ require 'stormgate_world/models/stats_by_time_match_length'
54
+ require 'stormgate_world/models/stats_by_time_match_length_entry'
55
+
56
+ # APIs
57
+ require 'stormgate_world/api/leaderboard_entries_api'
58
+ require 'stormgate_world/api/leaderboards_api'
59
+ require 'stormgate_world/api/matches_api'
60
+ require 'stormgate_world/api/players_api'
61
+ require 'stormgate_world/api/statistics_api'
62
+
63
+ module StormgateWorld
64
+ class << self
65
+ # Customize default settings for the SDK using block.
66
+ # StormgateWorld.configure do |config|
67
+ # config.username = "xxx"
68
+ # config.password = "xxx"
69
+ # end
70
+ # If no block given, return the default Configuration object.
71
+ def configure
72
+ if block_given?
73
+ yield(Configuration.default)
74
+ else
75
+ Configuration.default
76
+ end
77
+ end
78
+ end
79
+ end
data/openapitools.json ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json",
3
+ "spaces": 2,
4
+ "generator-cli": {
5
+ "version": "7.3.0"
6
+ }
7
+ }
@@ -0,0 +1,45 @@
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
+
16
+ # Unit tests for OpenapiClient::LeaderboardEntriesApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'LeaderboardEntriesApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = OpenapiClient::LeaderboardEntriesApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of LeaderboardEntriesApi' do
30
+ it 'should create an instance of LeaderboardEntriesApi' do
31
+ expect(@api_instance).to be_instance_of(OpenapiClient::LeaderboardEntriesApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for get_leaderboard_entry_history
36
+ # @param leaderboard_entry_id Player Leaderboard Entry ID
37
+ # @param [Hash] opts the optional parameters
38
+ # @return [LeaderboardEntryHistory]
39
+ describe 'get_leaderboard_entry_history test' do
40
+ it 'should work' do
41
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
42
+ end
43
+ end
44
+
45
+ end
@@ -0,0 +1,58 @@
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
+
16
+ # Unit tests for OpenapiClient::LeaderboardsApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'LeaderboardsApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = OpenapiClient::LeaderboardsApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of LeaderboardsApi' do
30
+ it 'should create an instance of LeaderboardsApi' do
31
+ expect(@api_instance).to be_instance_of(OpenapiClient::LeaderboardsApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for get_leaderboard
36
+ # @param [Hash] opts the optional parameters
37
+ # @option opts [Race] :race
38
+ # @option opts [Integer] :page
39
+ # @option opts [Integer] :count
40
+ # @option opts [LeaderboardOrder] :order
41
+ # @option opts [String] :query
42
+ # @return [LeaderboardResponse]
43
+ describe 'get_leaderboard test' do
44
+ it 'should work' do
45
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
46
+ end
47
+ end
48
+
49
+ # unit tests for get_leaderboard_dump
50
+ # @param [Hash] opts the optional parameters
51
+ # @return [LeaderboardDumpResponse]
52
+ describe 'get_leaderboard_dump test' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
55
+ end
56
+ end
57
+
58
+ end
@@ -0,0 +1,47 @@
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
+
16
+ # Unit tests for OpenapiClient::MatchesApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'MatchesApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = OpenapiClient::MatchesApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of MatchesApi' do
30
+ it 'should create an instance of MatchesApi' do
31
+ expect(@api_instance).to be_instance_of(OpenapiClient::MatchesApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for get_matches
36
+ # @param [Hash] opts the optional parameters
37
+ # @option opts [Integer] :page
38
+ # @option opts [Integer] :count
39
+ # @option opts [MatchState] :state
40
+ # @return [MatchesResponse]
41
+ describe 'get_matches test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
44
+ end
45
+ end
46
+
47
+ end
@@ -0,0 +1,117 @@
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
+
16
+ # Unit tests for OpenapiClient::PlayersApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'PlayersApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = OpenapiClient::PlayersApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of PlayersApi' do
30
+ it 'should create an instance of PlayersApi' do
31
+ expect(@api_instance).to be_instance_of(OpenapiClient::PlayersApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for get_player
36
+ # @param player_id Player ID
37
+ # @param [Hash] opts the optional parameters
38
+ # @return [PlayerResponse]
39
+ describe 'get_player test' do
40
+ it 'should work' do
41
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
42
+ end
43
+ end
44
+
45
+ # unit tests for get_player_last_match
46
+ # @param player_id Player ID
47
+ # @param [Hash] opts the optional parameters
48
+ # @return [MatchResponse]
49
+ describe 'get_player_last_match test' do
50
+ it 'should work' do
51
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
52
+ end
53
+ end
54
+
55
+ # unit tests for get_player_matches
56
+ # @param player_id Player ID
57
+ # @param [Hash] opts the optional parameters
58
+ # @return [PlayerMatchesResponse]
59
+ describe 'get_player_matches test' do
60
+ it 'should work' do
61
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
62
+ end
63
+ end
64
+
65
+ # unit tests for get_player_preferences
66
+ # @param player_id Player ID
67
+ # @param [Hash] opts the optional parameters
68
+ # @return [PlayerPreferences]
69
+ describe 'get_player_preferences test' do
70
+ it 'should work' do
71
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
72
+ end
73
+ end
74
+
75
+ # unit tests for get_player_statistics_activity
76
+ # @param player_id Player ID
77
+ # @param [Hash] opts the optional parameters
78
+ # @return [PlayerActivityStats]
79
+ describe 'get_player_statistics_activity test' do
80
+ it 'should work' do
81
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
82
+ end
83
+ end
84
+
85
+ # unit tests for get_player_statistics_matchups
86
+ # @param player_id Player ID
87
+ # @param [Hash] opts the optional parameters
88
+ # @return [PlayerMatchupsStats]
89
+ describe 'get_player_statistics_matchups test' do
90
+ it 'should work' do
91
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
92
+ end
93
+ end
94
+
95
+ # unit tests for get_player_statistics_opponents
96
+ # @param player_id Player ID
97
+ # @param [Hash] opts the optional parameters
98
+ # @option opts [Integer] :count
99
+ # @return [PlayerOpponentsStats]
100
+ describe 'get_player_statistics_opponents test' do
101
+ it 'should work' do
102
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
103
+ end
104
+ end
105
+
106
+ # unit tests for update_player_preferences
107
+ # @param player_id Player ID
108
+ # @param player_preferences
109
+ # @param [Hash] opts the optional parameters
110
+ # @return [PlayerPreferences]
111
+ describe 'update_player_preferences test' do
112
+ it 'should work' do
113
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
114
+ end
115
+ end
116
+
117
+ end
@@ -0,0 +1,45 @@
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
+
16
+ # Unit tests for OpenapiClient::StatisticsApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'StatisticsApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = OpenapiClient::StatisticsApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of StatisticsApi' do
30
+ it 'should create an instance of StatisticsApi' do
31
+ expect(@api_instance).to be_instance_of(OpenapiClient::StatisticsApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for get_statistics
36
+ # @param [Hash] opts the optional parameters
37
+ # @option opts [String] :league
38
+ # @return [StatsByTime]
39
+ describe 'get_statistics test' do
40
+ it 'should work' do
41
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
42
+ end
43
+ end
44
+
45
+ end