blizzard_api 3.4.0 → 3.4.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c512afdd4603e21f9e0f69320bea3ee1217050c7529979453c4e5196ebae26d
|
4
|
+
data.tar.gz: 54bf6ae69b29b36b7522072c5feadfc47255184b1a2e00acae842373d7711917
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e1bf5df8fb0171d4347b35ecf5f40441ddf430f30feb62b9d0f250fc88b14abbc6649ad150e6a2a5f8f49ae71129eeff0f394433a247fa7cb5a281c8ae120a1
|
7
|
+
data.tar.gz: befe1a4fb05362cd1f7cf67aa5d0d59ea14e1eb00d7455c2d7558322fe65a0c51e7339a5d9e9178aefacf654f45915e34034cbba8df53597ed8003df8e72dcd0
|
data/Gemfile.lock
CHANGED
data/lib/blizzard_api/version.rb
CHANGED
@@ -52,6 +52,26 @@ module BlizzardApi
|
|
52
52
|
api_request "#{base_url(:user_profile)}/collections/mounts", **default_options.merge(options)
|
53
53
|
end
|
54
54
|
|
55
|
+
##
|
56
|
+
# Returns the toy collection index for the account
|
57
|
+
#
|
58
|
+
# @!macro request_options
|
59
|
+
#
|
60
|
+
# @!macro response
|
61
|
+
def toys(**options)
|
62
|
+
api_request "#{base_url(:user_profile)}/collections/toys", **default_options.merge(options)
|
63
|
+
end
|
64
|
+
|
65
|
+
##
|
66
|
+
# Returns the heirloom collection index for the account
|
67
|
+
#
|
68
|
+
# @!macro request_options
|
69
|
+
#
|
70
|
+
# @!macro response
|
71
|
+
def heirloom(**options)
|
72
|
+
api_request "#{base_url(:user_profile)}/collections/heirloom", **default_options.merge(options)
|
73
|
+
end
|
74
|
+
|
55
75
|
##
|
56
76
|
# Returns the pet collection index for the account
|
57
77
|
#
|
@@ -110,6 +110,34 @@ module BlizzardApi
|
|
110
110
|
character_request realm, character, 'collections/mounts', **options
|
111
111
|
end
|
112
112
|
|
113
|
+
##
|
114
|
+
# Return a character's toy collection
|
115
|
+
#
|
116
|
+
# @see https://develop.battle.net/documentation/api-reference/world-of-warcraft-profile-api
|
117
|
+
#
|
118
|
+
# @param realm [String] The character realm's slug
|
119
|
+
# @param character [String] The character name
|
120
|
+
# @!macro request_options
|
121
|
+
#
|
122
|
+
# @!macro response
|
123
|
+
def toys(realm, character, **options)
|
124
|
+
character_request realm, character, 'collections/toys', **options
|
125
|
+
end
|
126
|
+
|
127
|
+
##
|
128
|
+
# Return a character's heirloom collection
|
129
|
+
#
|
130
|
+
# @see https://develop.battle.net/documentation/api-reference/world-of-warcraft-profile-api
|
131
|
+
#
|
132
|
+
# @param realm [String] The character realm's slug
|
133
|
+
# @param character [String] The character name
|
134
|
+
# @!macro request_options
|
135
|
+
#
|
136
|
+
# @!macro response
|
137
|
+
def heirlooms(realm, character, **options)
|
138
|
+
character_request realm, character, 'collections/heirlooms', **options
|
139
|
+
end
|
140
|
+
|
113
141
|
##
|
114
142
|
# Return a character's encounter summary
|
115
143
|
#
|
data/lib/blizzard_api/wow.rb
CHANGED
@@ -305,7 +305,7 @@ module BlizzardApi
|
|
305
305
|
BlizzardApi::Wow::WowToken.new(**options)
|
306
306
|
end
|
307
307
|
|
308
|
-
require_relative 'wow/profile/
|
308
|
+
require_relative 'wow/profile/account_profile'
|
309
309
|
require_relative 'wow/profile/guild'
|
310
310
|
require_relative 'wow/profile/character_profile'
|
311
311
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blizzard_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.4.
|
4
|
+
version: 3.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Francis Schiavo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redis
|
@@ -199,9 +199,9 @@ files:
|
|
199
199
|
- lib/blizzard_api/wow/game_data/title.rb
|
200
200
|
- lib/blizzard_api/wow/game_data/toy.rb
|
201
201
|
- lib/blizzard_api/wow/game_data/wow_token.rb
|
202
|
+
- lib/blizzard_api/wow/profile/account_profile.rb
|
202
203
|
- lib/blizzard_api/wow/profile/character_profile.rb
|
203
204
|
- lib/blizzard_api/wow/profile/guild.rb
|
204
|
-
- lib/blizzard_api/wow/profile/profile.rb
|
205
205
|
- lib/blizzard_api/wow/request.rb
|
206
206
|
- lib/blizzard_api/wow/search/search_composer.rb
|
207
207
|
- lib/blizzard_api/wow/search/search_request.rb
|