stormgate_world 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +73 -0
- data/README.md +20 -5
- data/docs/ActivityStatistics.md +24 -0
- data/docs/ActivityStatisticsActivity.md +20 -0
- data/docs/ActivityStatisticsEntry.md +24 -0
- data/docs/Aggregation.md +15 -0
- data/docs/CountriesStatistics.md +24 -0
- data/docs/CountriesStatisticsEntry.md +22 -0
- data/docs/DumpFormat.md +15 -0
- data/docs/LeaderboardEntriesApi.md +10 -4
- data/docs/LeaderboardEntryHistory.md +7 -1
- data/docs/LeaderboardEntryHistoryRow.md +22 -0
- data/docs/LeaderboardEntryResponse.md +3 -1
- data/docs/LeaderboardsApi.md +10 -5
- data/docs/League.md +15 -0
- data/docs/MatchParticipantPlayerLeaderboardEntryResponse.md +1 -1
- data/docs/PlayerMatchesResponse.md +2 -0
- data/docs/PlayerResponse.md +5 -1
- data/docs/PlayersApi.md +14 -146
- data/docs/Resolution.md +15 -0
- data/docs/ServersStatistics.md +24 -0
- data/docs/ServersStatisticsEntry.md +22 -0
- data/docs/StatisticsApi.md +205 -2
- data/docs/StatsByTime.md +1 -1
- data/lib/stormgate_world/api/leaderboard_entries_api.rb +6 -0
- data/lib/stormgate_world/api/leaderboards_api.rb +3 -0
- data/lib/stormgate_world/api/players_api.rb +20 -129
- data/lib/stormgate_world/api/statistics_api.rb +186 -2
- data/lib/stormgate_world/models/activity_statistics.rb +269 -0
- data/lib/stormgate_world/models/activity_statistics_activity.rb +239 -0
- data/lib/stormgate_world/models/activity_statistics_entry.rb +263 -0
- data/lib/stormgate_world/models/aggregation.rb +41 -0
- data/lib/stormgate_world/models/countries_statistics.rb +271 -0
- data/lib/stormgate_world/models/countries_statistics_entry.rb +241 -0
- data/lib/stormgate_world/models/dump_format.rb +40 -0
- data/lib/stormgate_world/models/leaderboard_entry_history.rb +72 -2
- data/lib/stormgate_world/models/leaderboard_entry_history_row.rb +241 -0
- data/lib/stormgate_world/models/leaderboard_entry_response.rb +12 -2
- data/lib/stormgate_world/models/league.rb +45 -0
- data/lib/stormgate_world/models/match_participant_player_leaderboard_entry_response.rb +23 -1
- data/lib/stormgate_world/models/player_matches_response.rb +36 -1
- data/lib/stormgate_world/models/player_response.rb +25 -5
- data/lib/stormgate_world/models/race.rb +1 -2
- data/lib/stormgate_world/models/resolution.rb +42 -0
- data/lib/stormgate_world/models/servers_statistics.rb +271 -0
- data/lib/stormgate_world/models/servers_statistics_entry.rb +253 -0
- data/lib/stormgate_world/models/stats_by_time.rb +23 -1
- data/lib/stormgate_world/version.rb +1 -1
- data/lib/stormgate_world.rb +12 -2
- data/pkg/stormgate_world-1.0.0.gem +0 -0
- data/spec/models/activity_statistics_activity_spec.rb +42 -0
- data/spec/models/activity_statistics_entry_spec.rb +54 -0
- data/spec/models/activity_statistics_spec.rb +54 -0
- data/spec/models/aggregation_spec.rb +30 -0
- data/spec/models/countries_statistics_entry_spec.rb +48 -0
- data/spec/models/countries_statistics_spec.rb +54 -0
- data/spec/models/dump_format_spec.rb +30 -0
- data/spec/models/leaderboard_entry_history_row_spec.rb +48 -0
- data/spec/models/league_spec.rb +30 -0
- data/spec/models/resolution_spec.rb +30 -0
- data/spec/models/servers_statistics_entry_spec.rb +48 -0
- data/spec/models/servers_statistics_spec.rb +54 -0
- data/stormgate_world.json +1 -1
- metadata +52 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5cf60cbba4c8129317413f8860daa85151abae5f78dd58f2b0ae7a15bfa404dc
|
4
|
+
data.tar.gz: aa8749fb15cc06bd88d418a5931e75089e96bf3dafa43a63c762fb24934a3922
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a093bbf53c4c6166dedfb667fddc3a2e392e756aa679a95938c1fdcca9dcfc3f1de9651eb3c52f4205692de184b49a7c3ab060e38fb0e4cb1b729fe88d54c7b
|
7
|
+
data.tar.gz: a4d96480cbb10585bdb66ceced6c833b2059cb34ac9f9c2d4cd0cf87ca9c2a9c6baffdab861fcb729ce892582a31d4c605bf41ba8e32255895bdda778212e2d6
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,73 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
stormgate_world (1.1.0)
|
5
|
+
typhoeus (~> 1.0, >= 1.0.1)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
ast (2.4.2)
|
11
|
+
byebug (11.1.3)
|
12
|
+
coderay (1.1.3)
|
13
|
+
diff-lcs (1.5.1)
|
14
|
+
ethon (0.16.0)
|
15
|
+
ffi (>= 1.15.0)
|
16
|
+
ffi (1.16.3)
|
17
|
+
jaro_winkler (1.5.6)
|
18
|
+
method_source (1.0.0)
|
19
|
+
parallel (1.24.0)
|
20
|
+
parser (3.3.0.5)
|
21
|
+
ast (~> 2.4.1)
|
22
|
+
racc
|
23
|
+
pry (0.14.2)
|
24
|
+
coderay (~> 1.1)
|
25
|
+
method_source (~> 1.0)
|
26
|
+
pry-byebug (3.10.1)
|
27
|
+
byebug (~> 11.0)
|
28
|
+
pry (>= 0.13, < 0.15)
|
29
|
+
psych (5.1.2)
|
30
|
+
stringio
|
31
|
+
racc (1.7.3)
|
32
|
+
rainbow (3.1.1)
|
33
|
+
rake (13.0.6)
|
34
|
+
rspec (3.13.0)
|
35
|
+
rspec-core (~> 3.13.0)
|
36
|
+
rspec-expectations (~> 3.13.0)
|
37
|
+
rspec-mocks (~> 3.13.0)
|
38
|
+
rspec-core (3.13.0)
|
39
|
+
rspec-support (~> 3.13.0)
|
40
|
+
rspec-expectations (3.13.0)
|
41
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
42
|
+
rspec-support (~> 3.13.0)
|
43
|
+
rspec-mocks (3.13.0)
|
44
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
45
|
+
rspec-support (~> 3.13.0)
|
46
|
+
rspec-support (3.13.1)
|
47
|
+
rubocop (0.66.0)
|
48
|
+
jaro_winkler (~> 1.5.1)
|
49
|
+
parallel (~> 1.10)
|
50
|
+
parser (>= 2.5, != 2.5.1.1)
|
51
|
+
psych (>= 3.1.0)
|
52
|
+
rainbow (>= 2.2.2, < 4.0)
|
53
|
+
ruby-progressbar (~> 1.7)
|
54
|
+
unicode-display_width (>= 1.4.0, < 1.6)
|
55
|
+
ruby-progressbar (1.13.0)
|
56
|
+
stringio (3.1.0)
|
57
|
+
typhoeus (1.4.1)
|
58
|
+
ethon (>= 0.9.0)
|
59
|
+
unicode-display_width (1.5.0)
|
60
|
+
|
61
|
+
PLATFORMS
|
62
|
+
ruby
|
63
|
+
x86_64-linux
|
64
|
+
|
65
|
+
DEPENDENCIES
|
66
|
+
pry-byebug
|
67
|
+
rake (~> 13.0.1)
|
68
|
+
rspec (~> 3.6, >= 3.6.0)
|
69
|
+
rubocop (~> 0.66.0)
|
70
|
+
stormgate_world!
|
71
|
+
|
72
|
+
BUNDLED WITH
|
73
|
+
2.5.3
|
data/README.md
CHANGED
@@ -58,9 +58,13 @@ require 'stormgate_world'
|
|
58
58
|
|
59
59
|
api_instance = StormgateWorld::LeaderboardEntriesApi.new
|
60
60
|
leaderboard_entry_id = 'leaderboard_entry_id_example' # String | Player Leaderboard Entry ID
|
61
|
+
opts = {
|
62
|
+
resolution: StormgateWorld::Resolution::MINUTE, # Resolution |
|
63
|
+
aggregation: StormgateWorld::Aggregation::LAST # Aggregation |
|
64
|
+
}
|
61
65
|
|
62
66
|
begin
|
63
|
-
result = api_instance.get_leaderboard_entry_history(leaderboard_entry_id)
|
67
|
+
result = api_instance.get_leaderboard_entry_history(leaderboard_entry_id, opts)
|
64
68
|
p result
|
65
69
|
rescue StormgateWorld::ApiError => e
|
66
70
|
puts "Exception when calling LeaderboardEntriesApi->get_leaderboard_entry_history: #{e}"
|
@@ -81,24 +85,33 @@ Class | Method | HTTP request | Description
|
|
81
85
|
*StormgateWorld::PlayersApi* | [**get_player**](docs/PlayersApi.md#get_player) | **GET** /v0/players/{player_id} |
|
82
86
|
*StormgateWorld::PlayersApi* | [**get_player_last_match**](docs/PlayersApi.md#get_player_last_match) | **GET** /v0/players/{player_id}/matches/last |
|
83
87
|
*StormgateWorld::PlayersApi* | [**get_player_matches**](docs/PlayersApi.md#get_player_matches) | **GET** /v0/players/{player_id}/matches |
|
84
|
-
*StormgateWorld::PlayersApi* | [**get_player_preferences**](docs/PlayersApi.md#get_player_preferences) | **GET** /v0/players/{player_id}/preferences |
|
85
88
|
*StormgateWorld::PlayersApi* | [**get_player_statistics_activity**](docs/PlayersApi.md#get_player_statistics_activity) | **GET** /v0/players/{player_id}/statistics/activity |
|
86
89
|
*StormgateWorld::PlayersApi* | [**get_player_statistics_matchups**](docs/PlayersApi.md#get_player_statistics_matchups) | **GET** /v0/players/{player_id}/statistics/matchups |
|
87
90
|
*StormgateWorld::PlayersApi* | [**get_player_statistics_opponents**](docs/PlayersApi.md#get_player_statistics_opponents) | **GET** /v0/players/{player_id}/statistics/opponents |
|
88
|
-
*StormgateWorld::PlayersApi* | [**update_player_preferences**](docs/PlayersApi.md#update_player_preferences) | **PUT** /v0/players/{player_id}/preferences |
|
89
91
|
*StormgateWorld::StatisticsApi* | [**get_statistics**](docs/StatisticsApi.md#get_statistics) | **GET** /v0/statistics/ranked_1v1 |
|
92
|
+
*StormgateWorld::StatisticsApi* | [**get_statistics_activity**](docs/StatisticsApi.md#get_statistics_activity) | **GET** /v0/statistics/activity |
|
93
|
+
*StormgateWorld::StatisticsApi* | [**get_statistics_countries**](docs/StatisticsApi.md#get_statistics_countries) | **GET** /v0/statistics/countries |
|
94
|
+
*StormgateWorld::StatisticsApi* | [**get_statistics_servers**](docs/StatisticsApi.md#get_statistics_servers) | **GET** /v0/statistics/servers |
|
90
95
|
|
91
96
|
|
92
97
|
## Documentation for Models
|
93
98
|
|
99
|
+
- [StormgateWorld::ActivityStatistics](docs/ActivityStatistics.md)
|
100
|
+
- [StormgateWorld::ActivityStatisticsActivity](docs/ActivityStatisticsActivity.md)
|
101
|
+
- [StormgateWorld::ActivityStatisticsEntry](docs/ActivityStatisticsEntry.md)
|
102
|
+
- [StormgateWorld::Aggregation](docs/Aggregation.md)
|
103
|
+
- [StormgateWorld::CountriesStatistics](docs/CountriesStatistics.md)
|
104
|
+
- [StormgateWorld::CountriesStatisticsEntry](docs/CountriesStatisticsEntry.md)
|
105
|
+
- [StormgateWorld::DumpFormat](docs/DumpFormat.md)
|
94
106
|
- [StormgateWorld::ErrorResponse](docs/ErrorResponse.md)
|
95
107
|
- [StormgateWorld::Leaderboard](docs/Leaderboard.md)
|
96
108
|
- [StormgateWorld::LeaderboardDumpResponse](docs/LeaderboardDumpResponse.md)
|
97
109
|
- [StormgateWorld::LeaderboardEntryHistory](docs/LeaderboardEntryHistory.md)
|
98
|
-
- [StormgateWorld::
|
110
|
+
- [StormgateWorld::LeaderboardEntryHistoryRow](docs/LeaderboardEntryHistoryRow.md)
|
99
111
|
- [StormgateWorld::LeaderboardEntryResponse](docs/LeaderboardEntryResponse.md)
|
100
112
|
- [StormgateWorld::LeaderboardOrder](docs/LeaderboardOrder.md)
|
101
113
|
- [StormgateWorld::LeaderboardResponse](docs/LeaderboardResponse.md)
|
114
|
+
- [StormgateWorld::League](docs/League.md)
|
102
115
|
- [StormgateWorld::MatchParticipantPlayerLeaderboardEntryResponse](docs/MatchParticipantPlayerLeaderboardEntryResponse.md)
|
103
116
|
- [StormgateWorld::MatchParticipantPlayerResponse](docs/MatchParticipantPlayerResponse.md)
|
104
117
|
- [StormgateWorld::MatchParticipantResponse](docs/MatchParticipantResponse.md)
|
@@ -114,13 +127,15 @@ Class | Method | HTTP request | Description
|
|
114
127
|
- [StormgateWorld::PlayerMatchupsStatsMatchup](docs/PlayerMatchupsStatsMatchup.md)
|
115
128
|
- [StormgateWorld::PlayerOpponentsStats](docs/PlayerOpponentsStats.md)
|
116
129
|
- [StormgateWorld::PlayerOpponentsStatsOpponent](docs/PlayerOpponentsStatsOpponent.md)
|
117
|
-
- [StormgateWorld::PlayerPreferences](docs/PlayerPreferences.md)
|
118
130
|
- [StormgateWorld::PlayerResponse](docs/PlayerResponse.md)
|
119
131
|
- [StormgateWorld::PlayerStatsEntry](docs/PlayerStatsEntry.md)
|
120
132
|
- [StormgateWorld::PlayerStatsEntryAggregated](docs/PlayerStatsEntryAggregated.md)
|
121
133
|
- [StormgateWorld::PlayerStatsEntryNumBreakdown](docs/PlayerStatsEntryNumBreakdown.md)
|
122
134
|
- [StormgateWorld::ProfilePrivacy](docs/ProfilePrivacy.md)
|
123
135
|
- [StormgateWorld::Race](docs/Race.md)
|
136
|
+
- [StormgateWorld::Resolution](docs/Resolution.md)
|
137
|
+
- [StormgateWorld::ServersStatistics](docs/ServersStatistics.md)
|
138
|
+
- [StormgateWorld::ServersStatisticsEntry](docs/ServersStatisticsEntry.md)
|
124
139
|
- [StormgateWorld::StatsByTime](docs/StatsByTime.md)
|
125
140
|
- [StormgateWorld::StatsByTimeEntry](docs/StatsByTimeEntry.md)
|
126
141
|
- [StormgateWorld::StatsByTimeHistoryPoint](docs/StatsByTimeHistoryPoint.md)
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# StormgateWorld::ActivityStatistics
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **cached_at** | **Time** | | |
|
8
|
+
| **since** | **Date** | | |
|
9
|
+
| **_until** | **Date** | | |
|
10
|
+
| **activity** | [**ActivityStatisticsActivity**](ActivityStatisticsActivity.md) | | |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'stormgate_world'
|
16
|
+
|
17
|
+
instance = StormgateWorld::ActivityStatistics.new(
|
18
|
+
cached_at: null,
|
19
|
+
since: null,
|
20
|
+
_until: null,
|
21
|
+
activity: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# StormgateWorld::ActivityStatisticsActivity
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **aggregated** | [**ActivityStatisticsEntry**](ActivityStatisticsEntry.md) | | |
|
8
|
+
| **history** | [**Array<ActivityStatisticsEntry>**](ActivityStatisticsEntry.md) | | |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'stormgate_world'
|
14
|
+
|
15
|
+
instance = StormgateWorld::ActivityStatisticsActivity.new(
|
16
|
+
aggregated: null,
|
17
|
+
history: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# StormgateWorld::ActivityStatisticsEntry
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **date** | **Date** | | [optional] |
|
8
|
+
| **matches** | **Integer** | | |
|
9
|
+
| **players** | **Integer** | | |
|
10
|
+
| **match_length_average** | **Float** | | |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'stormgate_world'
|
16
|
+
|
17
|
+
instance = StormgateWorld::ActivityStatisticsEntry.new(
|
18
|
+
date: null,
|
19
|
+
matches: null,
|
20
|
+
players: null,
|
21
|
+
match_length_average: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
data/docs/Aggregation.md
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# StormgateWorld::CountriesStatistics
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **cached_at** | **Time** | | |
|
8
|
+
| **since** | **Date** | | |
|
9
|
+
| **_until** | **Date** | | |
|
10
|
+
| **countries** | [**Array<CountriesStatisticsEntry>**](CountriesStatisticsEntry.md) | | |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'stormgate_world'
|
16
|
+
|
17
|
+
instance = StormgateWorld::CountriesStatistics.new(
|
18
|
+
cached_at: null,
|
19
|
+
since: null,
|
20
|
+
_until: null,
|
21
|
+
countries: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# StormgateWorld::CountriesStatisticsEntry
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **name** | **String** | | [optional] |
|
8
|
+
| **code** | **String** | | [optional] |
|
9
|
+
| **players** | **Integer** | | |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'stormgate_world'
|
15
|
+
|
16
|
+
instance = StormgateWorld::CountriesStatisticsEntry.new(
|
17
|
+
name: null,
|
18
|
+
code: null,
|
19
|
+
players: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
data/docs/DumpFormat.md
ADDED
@@ -9,7 +9,7 @@ All URIs are relative to *https://api.stormgateworld.com*
|
|
9
9
|
|
10
10
|
## get_leaderboard_entry_history
|
11
11
|
|
12
|
-
> <LeaderboardEntryHistory> get_leaderboard_entry_history(leaderboard_entry_id)
|
12
|
+
> <LeaderboardEntryHistory> get_leaderboard_entry_history(leaderboard_entry_id, opts)
|
13
13
|
|
14
14
|
|
15
15
|
|
@@ -21,10 +21,14 @@ require 'stormgate_world'
|
|
21
21
|
|
22
22
|
api_instance = StormgateWorld::LeaderboardEntriesApi.new
|
23
23
|
leaderboard_entry_id = 'leaderboard_entry_id_example' # String | Player Leaderboard Entry ID
|
24
|
+
opts = {
|
25
|
+
resolution: StormgateWorld::Resolution::MINUTE, # Resolution |
|
26
|
+
aggregation: StormgateWorld::Aggregation::LAST # Aggregation |
|
27
|
+
}
|
24
28
|
|
25
29
|
begin
|
26
30
|
|
27
|
-
result = api_instance.get_leaderboard_entry_history(leaderboard_entry_id)
|
31
|
+
result = api_instance.get_leaderboard_entry_history(leaderboard_entry_id, opts)
|
28
32
|
p result
|
29
33
|
rescue StormgateWorld::ApiError => e
|
30
34
|
puts "Error when calling LeaderboardEntriesApi->get_leaderboard_entry_history: #{e}"
|
@@ -35,12 +39,12 @@ end
|
|
35
39
|
|
36
40
|
This returns an Array which contains the response data, status code and headers.
|
37
41
|
|
38
|
-
> <Array(<LeaderboardEntryHistory>, Integer, Hash)> get_leaderboard_entry_history_with_http_info(leaderboard_entry_id)
|
42
|
+
> <Array(<LeaderboardEntryHistory>, Integer, Hash)> get_leaderboard_entry_history_with_http_info(leaderboard_entry_id, opts)
|
39
43
|
|
40
44
|
```ruby
|
41
45
|
begin
|
42
46
|
|
43
|
-
data, status_code, headers = api_instance.get_leaderboard_entry_history_with_http_info(leaderboard_entry_id)
|
47
|
+
data, status_code, headers = api_instance.get_leaderboard_entry_history_with_http_info(leaderboard_entry_id, opts)
|
44
48
|
p status_code # => 2xx
|
45
49
|
p headers # => { ... }
|
46
50
|
p data # => <LeaderboardEntryHistory>
|
@@ -54,6 +58,8 @@ end
|
|
54
58
|
| Name | Type | Description | Notes |
|
55
59
|
| ---- | ---- | ----------- | ----- |
|
56
60
|
| **leaderboard_entry_id** | **String** | Player Leaderboard Entry ID | |
|
61
|
+
| **resolution** | [**Resolution**](.md) | | [optional] |
|
62
|
+
| **aggregation** | [**Aggregation**](.md) | | [optional] |
|
57
63
|
|
58
64
|
### Return type
|
59
65
|
|
@@ -4,7 +4,10 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **
|
7
|
+
| **cached_at** | **Time** | | |
|
8
|
+
| **resolution** | [**Resolution**](Resolution.md) | | |
|
9
|
+
| **aggregation** | [**Aggregation**](Aggregation.md) | | |
|
10
|
+
| **history** | [**Array<LeaderboardEntryHistoryRow>**](LeaderboardEntryHistoryRow.md) | | |
|
8
11
|
|
9
12
|
## Example
|
10
13
|
|
@@ -12,6 +15,9 @@
|
|
12
15
|
require 'stormgate_world'
|
13
16
|
|
14
17
|
instance = StormgateWorld::LeaderboardEntryHistory.new(
|
18
|
+
cached_at: null,
|
19
|
+
resolution: null,
|
20
|
+
aggregation: null,
|
15
21
|
history: null
|
16
22
|
)
|
17
23
|
```
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# StormgateWorld::LeaderboardEntryHistoryRow
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **time** | **Time** | | |
|
8
|
+
| **mmr** | **Float** | | [optional] |
|
9
|
+
| **points** | **Float** | | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'stormgate_world'
|
15
|
+
|
16
|
+
instance = StormgateWorld::LeaderboardEntryHistoryRow.new(
|
17
|
+
time: null,
|
18
|
+
mmr: null,
|
19
|
+
points: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -10,9 +10,10 @@
|
|
10
10
|
| **anonymous** | **Boolean** | | |
|
11
11
|
| **nickname** | **String** | | [optional] |
|
12
12
|
| **nickname_discriminator** | **String** | | [optional] |
|
13
|
+
| **avatar_url** | **String** | | [optional] |
|
13
14
|
| **rank** | **Integer** | | [optional] |
|
14
15
|
| **race** | [**Race**](Race.md) | | |
|
15
|
-
| **league** | **
|
16
|
+
| **league** | [**League**](League.md) | | [optional] |
|
16
17
|
| **tier** | **Integer** | | [optional] |
|
17
18
|
| **mmr** | **Float** | | |
|
18
19
|
| **max_confirmed_mmr** | **Float** | | [optional] |
|
@@ -35,6 +36,7 @@ instance = StormgateWorld::LeaderboardEntryResponse.new(
|
|
35
36
|
anonymous: null,
|
36
37
|
nickname: null,
|
37
38
|
nickname_discriminator: null,
|
39
|
+
avatar_url: null,
|
38
40
|
rank: null,
|
39
41
|
race: null,
|
40
42
|
league: null,
|
data/docs/LeaderboardsApi.md
CHANGED
@@ -82,7 +82,7 @@ No authorization required
|
|
82
82
|
|
83
83
|
## get_leaderboard_dump
|
84
84
|
|
85
|
-
> <LeaderboardDumpResponse> get_leaderboard_dump
|
85
|
+
> <LeaderboardDumpResponse> get_leaderboard_dump(opts)
|
86
86
|
|
87
87
|
|
88
88
|
|
@@ -93,10 +93,13 @@ require 'time'
|
|
93
93
|
require 'stormgate_world'
|
94
94
|
|
95
95
|
api_instance = StormgateWorld::LeaderboardsApi.new
|
96
|
+
opts = {
|
97
|
+
format: StormgateWorld::DumpFormat::JSON # DumpFormat |
|
98
|
+
}
|
96
99
|
|
97
100
|
begin
|
98
101
|
|
99
|
-
result = api_instance.get_leaderboard_dump
|
102
|
+
result = api_instance.get_leaderboard_dump(opts)
|
100
103
|
p result
|
101
104
|
rescue StormgateWorld::ApiError => e
|
102
105
|
puts "Error when calling LeaderboardsApi->get_leaderboard_dump: #{e}"
|
@@ -107,12 +110,12 @@ end
|
|
107
110
|
|
108
111
|
This returns an Array which contains the response data, status code and headers.
|
109
112
|
|
110
|
-
> <Array(<LeaderboardDumpResponse>, Integer, Hash)> get_leaderboard_dump_with_http_info
|
113
|
+
> <Array(<LeaderboardDumpResponse>, Integer, Hash)> get_leaderboard_dump_with_http_info(opts)
|
111
114
|
|
112
115
|
```ruby
|
113
116
|
begin
|
114
117
|
|
115
|
-
data, status_code, headers = api_instance.get_leaderboard_dump_with_http_info
|
118
|
+
data, status_code, headers = api_instance.get_leaderboard_dump_with_http_info(opts)
|
116
119
|
p status_code # => 2xx
|
117
120
|
p headers # => { ... }
|
118
121
|
p data # => <LeaderboardDumpResponse>
|
@@ -123,7 +126,9 @@ end
|
|
123
126
|
|
124
127
|
### Parameters
|
125
128
|
|
126
|
-
|
129
|
+
| Name | Type | Description | Notes |
|
130
|
+
| ---- | ---- | ----------- | ----- |
|
131
|
+
| **format** | [**DumpFormat**](.md) | | [optional] |
|
127
132
|
|
128
133
|
### Return type
|
129
134
|
|
data/docs/League.md
ADDED
@@ -5,7 +5,7 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **leaderboard_entry_id** | **String** | | |
|
8
|
-
| **league** | **
|
8
|
+
| **league** | [**League**](League.md) | | [optional] |
|
9
9
|
| **tier** | **Integer** | | [optional] |
|
10
10
|
| **rank** | **Integer** | | [optional] |
|
11
11
|
| **wins** | **Integer** | | |
|
@@ -6,6 +6,7 @@
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **count** | **Integer** | | |
|
8
8
|
| **page** | **Integer** | | |
|
9
|
+
| **total** | **Integer** | | |
|
9
10
|
| **matches** | [**Array<MatchResponse>**](MatchResponse.md) | | |
|
10
11
|
|
11
12
|
## Example
|
@@ -16,6 +17,7 @@ require 'stormgate_world'
|
|
16
17
|
instance = StormgateWorld::PlayerMatchesResponse.new(
|
17
18
|
count: null,
|
18
19
|
page: null,
|
20
|
+
total: null,
|
19
21
|
matches: null
|
20
22
|
)
|
21
23
|
```
|
data/docs/PlayerResponse.md
CHANGED
@@ -8,8 +8,10 @@
|
|
8
8
|
| **anonymous** | **Boolean** | | |
|
9
9
|
| **nickname** | **String** | | [optional] |
|
10
10
|
| **nickname_discriminator** | **String** | | [optional] |
|
11
|
+
| **avatar_url** | **String** | | [optional] |
|
11
12
|
| **leaderboard_entries** | [**Array<LeaderboardEntryResponse>**](LeaderboardEntryResponse.md) | | |
|
12
13
|
| **last_match_ended_at** | **Time** | | [optional] |
|
14
|
+
| **last_match_started_at** | **Time** | | [optional] |
|
13
15
|
|
14
16
|
## Example
|
15
17
|
|
@@ -21,8 +23,10 @@ instance = StormgateWorld::PlayerResponse.new(
|
|
21
23
|
anonymous: null,
|
22
24
|
nickname: null,
|
23
25
|
nickname_discriminator: null,
|
26
|
+
avatar_url: null,
|
24
27
|
leaderboard_entries: null,
|
25
|
-
last_match_ended_at: null
|
28
|
+
last_match_ended_at: null,
|
29
|
+
last_match_started_at: null
|
26
30
|
)
|
27
31
|
```
|
28
32
|
|