blizzard_api 0.5.4 → 0.5.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -1
- data/Gemfile.lock +1 -1
- data/README.md +57 -215
- data/lib/blizzard_api/diablo/community/act.rb +2 -2
- data/lib/blizzard_api/diablo/community/artisan.rb +2 -2
- data/lib/blizzard_api/diablo/community/character.rb +2 -2
- data/lib/blizzard_api/diablo/community/follower.rb +1 -1
- data/lib/blizzard_api/diablo/community/item.rb +1 -1
- data/lib/blizzard_api/diablo/community/item_type.rb +2 -2
- data/lib/blizzard_api/diablo/community/profile.rb +4 -4
- data/lib/blizzard_api/diablo/game_data/generic_data_endpoint.rb +3 -3
- data/lib/blizzard_api/hearthstone/game_data/back.rb +1 -1
- data/lib/blizzard_api/hearthstone/game_data/card.rb +2 -2
- data/lib/blizzard_api/hearthstone/game_data/generic_data_endpoint.rb +2 -2
- data/lib/blizzard_api/request.rb +2 -2
- data/lib/blizzard_api/starcraft/community/account.rb +1 -1
- data/lib/blizzard_api/starcraft/community/ladder.rb +2 -2
- data/lib/blizzard_api/starcraft/community/legacy.rb +6 -6
- data/lib/blizzard_api/starcraft/community/profile.rb +5 -5
- data/lib/blizzard_api/starcraft/game_data/league.rb +1 -1
- data/lib/blizzard_api/version.rb +1 -1
- data/lib/blizzard_api/wow.rb +0 -7
- data/lib/blizzard_api/wow/game_data/achievement.rb +3 -3
- data/lib/blizzard_api/wow/game_data/auction.rb +1 -1
- data/lib/blizzard_api/wow/game_data/azerite_essence.rb +1 -1
- data/lib/blizzard_api/wow/game_data/covenant.rb +5 -5
- data/lib/blizzard_api/wow/game_data/creature.rb +6 -6
- data/lib/blizzard_api/wow/game_data/generic_data_endpoint.rb +3 -3
- data/lib/blizzard_api/wow/game_data/guild_crest.rb +2 -2
- data/lib/blizzard_api/wow/game_data/item.rb +6 -6
- data/lib/blizzard_api/wow/game_data/journal.rb +8 -8
- data/lib/blizzard_api/wow/game_data/modified_crafting.rb +4 -4
- data/lib/blizzard_api/wow/game_data/mythic_keystone.rb +6 -6
- data/lib/blizzard_api/wow/game_data/mythic_keystone_affix.rb +1 -1
- data/lib/blizzard_api/wow/game_data/mythic_keystone_leaderboard.rb +2 -2
- data/lib/blizzard_api/wow/game_data/mythic_raid_leaderboard.rb +1 -1
- data/lib/blizzard_api/wow/game_data/pet.rb +4 -4
- data/lib/blizzard_api/wow/game_data/playable_class.rb +4 -4
- data/lib/blizzard_api/wow/game_data/playable_specialization.rb +2 -2
- data/lib/blizzard_api/wow/game_data/profession.rb +4 -4
- data/lib/blizzard_api/wow/game_data/pvp_season.rb +3 -3
- data/lib/blizzard_api/wow/game_data/pvp_tier.rb +1 -1
- data/lib/blizzard_api/wow/game_data/quest.rb +6 -6
- data/lib/blizzard_api/wow/game_data/reputation.rb +4 -4
- data/lib/blizzard_api/wow/game_data/spell.rb +1 -1
- data/lib/blizzard_api/wow/game_data/talent.rb +2 -2
- data/lib/blizzard_api/wow/game_data/tech_talent.rb +3 -3
- data/lib/blizzard_api/wow/game_data/wow_token.rb +1 -1
- data/lib/blizzard_api/wow/profile/character_profile.rb +51 -51
- data/lib/blizzard_api/wow/profile/guild.rb +8 -8
- data/lib/blizzard_api/wow/profile/profile.rb +5 -5
- data/lib/blizzard_api/wow/search/search_request.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df5491aa580d19886cc9508e2ec5b448172b3ddf4921a48c10d6ec4086204cf0
|
4
|
+
data.tar.gz: 8842b00597c073318df660741eb8b57e9406e5659cfe60f11f31885553e1ca9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4fe7082429eccbb69765ed1ff7253f6b65a2e6a7d0ff6ffd6d575c2eff503b206d76d53640416ac6c37eb3cc90249f228e4cb977b57344fc020ae051b5a764dd
|
7
|
+
data.tar.gz: 21b8f259a6cae19fabe6ce3cbf06b33dad06822a3f1842afc70984da5b11361b6e12469e7103f50ceb1e41619bdbeddae35080041a3a4d81060255a5c0137877
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,14 @@
|
|
1
1
|
Please view this file on the master branch, otherwise it may be outdated
|
2
2
|
|
3
|
-
**Version 0.5.
|
3
|
+
**Version 0.5.5**
|
4
|
+
|
5
|
+
Removing old and deprecated function from community endpoint.
|
6
|
+
|
7
|
+
Refactored all `options` arguments to use double splat syntax.
|
8
|
+
|
9
|
+
Modified README.md to point to the actual documentation and include missing endpoints.
|
10
|
+
|
11
|
+
**Version 0.5.4**
|
4
12
|
|
5
13
|
Added missing legacy SC2 endpoints
|
6
14
|
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -63,11 +63,9 @@ race = BlizzardApi::Wow.race
|
|
63
63
|
race_data = race.complete
|
64
64
|
```
|
65
65
|
|
66
|
-
|
66
|
+
Most **game data** endpoints will have always 3 methods available `index`, `get` and `complete`.
|
67
67
|
|
68
|
-
|
69
|
-
|
70
|
-
* `index` is used to get a list of all resources od that endpoint.
|
68
|
+
* `index` is used to get a list of all resources of that endpoint.
|
71
69
|
* `get` is used to get all information about a entry of the index returned data. It receives an id or slug as the first parameter, that depends on the endpoint.
|
72
70
|
* `complete` is a complete information of all items listed in index. **This may perform various calls to the blizzard api** only use if you really need all information.
|
73
71
|
|
@@ -75,7 +73,6 @@ Most **data** endpoints will have always 3 methods available `index`, `get` and
|
|
75
73
|
|
76
74
|
Some endpoints support search filters. To perform a search you can use the following formats:
|
77
75
|
|
78
|
-
|
79
76
|
To use the **or** operator you may pass an array of values as argument to `where` or `where_not` methods.
|
80
77
|
```ruby
|
81
78
|
realm = BlizzardApi::Wow.realm
|
@@ -125,227 +122,72 @@ end
|
|
125
122
|
|
126
123
|
### 4.1. World of Warcraft endpoints
|
127
124
|
|
128
|
-
*
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
*
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
*
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
*
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
*
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
*
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
- periods
|
166
|
-
- period :id
|
167
|
-
- seasons
|
168
|
-
- season :id
|
169
|
-
* Blizzard::Wow::MythicRaidLeaderboard
|
170
|
-
- get :raid_slug, :faction_slug
|
171
|
-
* Blizzard::Wow::Mount
|
172
|
-
- index
|
173
|
-
- get :id
|
174
|
-
- complete
|
175
|
-
* Blizzard::Wow::MythicKeystoneLeaderboard
|
176
|
-
- index :connected_realm_id
|
177
|
-
- get :connected_realm_id, :dungeon_id, :period
|
178
|
-
* Blizzard::Wow::Pet
|
179
|
-
- index
|
180
|
-
- get
|
181
|
-
- ability :id
|
182
|
-
- species :id
|
183
|
-
- stats :level, :breed_id, :quality_id
|
184
|
-
- types
|
185
|
-
* Blizzard::Wow::PlayableClass
|
186
|
-
- index
|
187
|
-
- get :id
|
188
|
-
- complete
|
189
|
-
- talent_slots :id
|
190
|
-
* Blizzard::Wow::PlayableSpecialization
|
191
|
-
- index
|
192
|
-
- get :id
|
193
|
-
- complete
|
194
|
-
* Blizzard::Wow::PowerType
|
195
|
-
- index
|
196
|
-
- get :id
|
197
|
-
- complete
|
198
|
-
* Blizzard::Wow::PvpSeason
|
199
|
-
- index
|
200
|
-
- get :id
|
201
|
-
- leaderboards :season_id
|
202
|
-
- leaderboard :season_id, :brackets
|
203
|
-
- rewards :season_id
|
204
|
-
* Blizzard::Wow::PvpTier
|
205
|
-
- index
|
206
|
-
- get :id
|
207
|
-
- tier_media :id
|
208
|
-
* Blizzard::Wow::Realm
|
209
|
-
- index
|
210
|
-
- get :id
|
211
|
-
- complete
|
212
|
-
- status :realms
|
213
|
-
- search
|
214
|
-
* Blizzard::Wow::Region
|
215
|
-
- index
|
216
|
-
- get :id
|
217
|
-
- complete
|
218
|
-
* Blizzard::Wow::WowToken
|
219
|
-
- get
|
220
|
-
* Blizzard::Wow::Race
|
221
|
-
- index
|
222
|
-
- get :id
|
223
|
-
- complete
|
224
|
-
* Blizzard::Wow::Title
|
225
|
-
- index
|
226
|
-
- get :id
|
227
|
-
* Blizzard::Wow::Item
|
228
|
-
- get :id
|
229
|
-
- item_set :id
|
230
|
-
- classes
|
231
|
-
- class :id
|
232
|
-
- subclass :class_id, :subclass_id
|
233
|
-
- media :id
|
234
|
-
- search
|
235
|
-
* Blizzard::Wow::AzeriteEssence
|
236
|
-
- index
|
237
|
-
- get :id
|
238
|
-
- media :id
|
239
|
-
- search
|
240
|
-
* Blizzard::Wow::ReputationTier
|
241
|
-
- index
|
242
|
-
- get :id
|
243
|
-
* Blizzard::Wow::ReputationFaction
|
244
|
-
- index
|
245
|
-
- get :id
|
246
|
-
|
247
|
-
* Blizzard::Wow::Auction
|
248
|
-
- get :realm
|
249
|
-
* Blizzard::Wow::Boss
|
250
|
-
- index
|
251
|
-
- get :id
|
252
|
-
* Blizzard::Wow::Challenge
|
253
|
-
- realm_index
|
254
|
-
- region_index
|
255
|
-
* Blizzard::Wow::Guild
|
256
|
-
- get :relam, :name, :fields
|
257
|
-
- rewards
|
258
|
-
- perks
|
259
|
-
* Blizzard::Wow::PvP
|
260
|
-
- get :bracket
|
261
|
-
* Blizzard::Wow::Quest
|
262
|
-
- get :id
|
263
|
-
* Blizzard::Wow::Recipe
|
264
|
-
- get :id
|
265
|
-
* Blizzard::Wow::Spell
|
266
|
-
- get :id
|
267
|
-
- search
|
268
|
-
* Blizzard::Wow::Zone
|
269
|
-
- index
|
270
|
-
- get :id
|
271
|
-
|
272
|
-
* BlizzardApi::Wow::CharacterProfile
|
273
|
-
- get_user_characters :user_token
|
274
|
-
- get :realm, :character, :fields
|
275
|
-
- status :realm, :character
|
276
|
-
- pvp_summmary :realm, :character, :user_token
|
277
|
-
- pvp_bracket :realm, :character, :bracket, :user_token
|
278
|
-
- achievements :realm, :character
|
279
|
-
- appearance :realm, :character
|
280
|
-
- equipment :realm, :character
|
281
|
-
- media :realm, :character
|
282
|
-
- pvp_bracket :realm, :character, :bracket
|
283
|
-
- pvp_summary :realm, :character
|
284
|
-
- specializations :realm, :character
|
285
|
-
- statistics :realm, :character
|
286
|
-
- titles :realm, :character
|
287
|
-
- mythic_keystone_profile :realm, :character
|
288
|
-
- mythic_keystone_seasons :realm, :character
|
289
|
-
- collections :realm, :character
|
290
|
-
- pets :realm, :character
|
291
|
-
- mounts :realm, :character
|
292
|
-
- hunter_pets :realm, :character
|
293
|
-
- reputations :realm, :character
|
294
|
-
- raid_progression :realm, :character (Not active yet on Blizzard servers)
|
125
|
+
* [BlizzardApi::Wow.achievement](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/Achievement)
|
126
|
+
* [BlizzardApi::Wow.auction](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/Auction)
|
127
|
+
* [BlizzardApi::Wow.azerite_essence](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/AzeriteEssence)
|
128
|
+
* [BlizzardApi::Wow.connected_realm](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/ConnectedRealm)
|
129
|
+
* [BlizzardApi::Wow.covenant](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/Covenant)
|
130
|
+
* [BlizzardApi::Wow.creature](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/Creature)
|
131
|
+
* [BlizzardApi::Wow.guild_crest](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/GuildCrest)
|
132
|
+
* [BlizzardApi::Wow.item](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/Item)
|
133
|
+
* [BlizzardApi::Wow.journal](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/Journal)
|
134
|
+
* [BlizzardApi::Wow.media](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/Media)
|
135
|
+
* [BlizzardApi::Wow.modified_crafting](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/ModifiedCrafting)
|
136
|
+
* [BlizzardApi::Wow.mount](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/Mount)
|
137
|
+
* [BlizzardApi::Wow.mythic_keystone_affix](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/MythicKeystoneAffix)
|
138
|
+
* [BlizzardApi::Wow.mythic_keystone](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/MythicKeystone)
|
139
|
+
* [BlizzardApi::Wow.mythic_raid_leaderboard](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/MythicRaidLeaderboard)
|
140
|
+
* [BlizzardApi::Wow.mythic_keystone_leaderboard](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/MythicKeystoneLeaderboard)
|
141
|
+
* [BlizzardApi::Wow.pet](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/Pet)
|
142
|
+
* [BlizzardApi::Wow.playable_class](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/PlayableClass)
|
143
|
+
* [BlizzardApi::Wow.playable_race](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/PlayableRace)
|
144
|
+
* [BlizzardApi::Wow.playable_specialization](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/PlayableSpecialization)
|
145
|
+
* [BlizzardApi::Wow.power_type](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/PowerType)
|
146
|
+
* [BlizzardApi::Wow.profession](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/Profession)
|
147
|
+
* [BlizzardApi::Wow.pvp_season](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/PvpSeason)
|
148
|
+
* [BlizzardApi::Wow.pvp_tier](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/PvpTier)
|
149
|
+
* [BlizzardApi::Wow.quest](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/Quest)
|
150
|
+
* [BlizzardApi::Wow.realm](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/Realm)
|
151
|
+
* [BlizzardApi::Wow.region](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/Region)
|
152
|
+
* [BlizzardApi::Wow.reputation](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/Reputation)
|
153
|
+
* [BlizzardApi::Wow.spell](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/Spell)
|
154
|
+
* [BlizzardApi::Wow.talent](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/Talent)
|
155
|
+
* [BlizzardApi::Wow.tech_talent](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/TechTalent)
|
156
|
+
* [BlizzardApi::Wow.title](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/Title)
|
157
|
+
* [BlizzardApi::Wow.wow_token](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/WowToken)
|
158
|
+
|
159
|
+
* [BlizzardApi::Wow.profile](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/Profile)
|
160
|
+
* [BlizzardApi::Wow.guild](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/Guild)
|
161
|
+
* [BlizzardApi::Wow.character_profile](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Wow/CharacterProfile)
|
295
162
|
|
296
163
|
### 4.2. Diablo III endpoints
|
297
164
|
|
298
|
-
* BlizzardApi::Diablo
|
299
|
-
|
300
|
-
|
301
|
-
* BlizzardApi::Diablo
|
302
|
-
|
303
|
-
|
304
|
-
* BlizzardApi::Diablo
|
305
|
-
|
306
|
-
* BlizzardApi::Diablo
|
307
|
-
- get :class_slug
|
308
|
-
- skill :class_slug, :skill_slug
|
309
|
-
* BlizzardApi::Diablo::ItemType
|
310
|
-
- index
|
311
|
-
- get :item_type_slug
|
312
|
-
* BlizzardApi::Diablo::Item
|
313
|
-
- get :item_slug, :item_id
|
314
|
-
* BlizzardApi::Diablo::Profile
|
315
|
-
- index :battletag, :oauth_token
|
316
|
-
- hero :battletag, :oauth_token, :hero_id
|
317
|
-
- hero_items :battletag, :oauth_token, :hero_id
|
318
|
-
- hero_follower_items :battletag, :oauth_token, :hero_id
|
165
|
+
* [BlizzardApi::Diablo.season](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Diablo/Season)
|
166
|
+
* [BlizzardApi::Diablo.era](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Diablo/Era)
|
167
|
+
* [BlizzardApi::Diablo.act](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Diablo/Act)
|
168
|
+
* [BlizzardApi::Diablo.artisan](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Diablo/Artisan)
|
169
|
+
* [BlizzardApi::Diablo.follower](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Diablo/Follower)
|
170
|
+
* [BlizzardApi::Diablo.character](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Diablo/Character)
|
171
|
+
* [BlizzardApi::Diablo.item_type](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Diablo/ItemType)
|
172
|
+
* [BlizzardApi::Diablo.item](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Diablo/Item)
|
173
|
+
* [BlizzardApi::Diablo.profile](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Diablo/Profile)
|
319
174
|
|
320
175
|
### 4.3. Hearthstone endpoints
|
321
176
|
|
322
|
-
* BlizzardApi::Hearthstone
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
* BlizzardApi::Hearthstone::Deck
|
327
|
-
- get :deck_code
|
328
|
-
* BlizzardApi::Hearthstone::Metadata
|
329
|
-
- index
|
330
|
-
- get :type
|
177
|
+
* [BlizzardApi::Hearthstone.card](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Hearthstone/Card)
|
178
|
+
* [BlizzardApi::Hearthstone.back](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Hearthstone/Back)
|
179
|
+
* [BlizzardApi::Hearthstone.deck](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Hearthstone/Deck)
|
180
|
+
* [BlizzardApi::Hearthstone.metadata](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Hearthstone/Metadata)
|
331
181
|
|
332
182
|
### 4.4. Starcraft II endpoints
|
333
183
|
|
334
184
|
Every endpoint requiring a *region_id* parameter will accepts either the integer representation of the region described in the api docs or a symbol: `:US`, `:EU`, `:KO` or `:TW`
|
335
185
|
|
336
|
-
* BlizzardApi::Starcraft
|
337
|
-
|
338
|
-
* BlizzardApi::Starcraft
|
339
|
-
|
340
|
-
|
341
|
-
- profile :region_id, :realm_id, :profile_id
|
342
|
-
- ladder_summary :region_id, :realm_id, :profile_id
|
343
|
-
- ladder :region_id, :realm_id, :profile_id, :ladder_id
|
344
|
-
* BlizzardApi::Starcraft::Ladder
|
345
|
-
- grandmaster :region_id, :options
|
346
|
-
- season :region_id
|
347
|
-
* BlizzardApi::Starcraft::Account
|
348
|
-
- player :account_id
|
186
|
+
* [BlizzardApi::Starcraft.profile](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Starcraft/Profile)
|
187
|
+
* [BlizzardApi::Starcraft.ladder](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Starcraft/Ladder)
|
188
|
+
* [BlizzardApi::Starcraft.account](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Starcraft/Account)
|
189
|
+
* [BlizzardApi::Starcraft.legacy](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Starcraft/Legacy)
|
190
|
+
* [BlizzardApi::Starcraft.league](https://rubydoc.info/gems/blizzard_api/BlizzardApi/Starcraft/League)
|
349
191
|
|
350
192
|
## Contributing
|
351
193
|
|
@@ -16,7 +16,7 @@ module BlizzardApi
|
|
16
16
|
# @!macro request_options
|
17
17
|
#
|
18
18
|
# @!macro response
|
19
|
-
def index(options
|
19
|
+
def index(**options)
|
20
20
|
api_request "#{base_url(:community)}/data/act", { ttl: CACHE_TRIMESTER }.merge(options)
|
21
21
|
end
|
22
22
|
|
@@ -27,7 +27,7 @@ module BlizzardApi
|
|
27
27
|
# @!macro request_options
|
28
28
|
#
|
29
29
|
# @!macro response
|
30
|
-
def get(id, options
|
30
|
+
def get(id, **options)
|
31
31
|
api_request "#{base_url(:community)}/data/act/#{id}", { ttl: CACHE_TRIMESTER }.merge(options)
|
32
32
|
end
|
33
33
|
end
|
@@ -17,7 +17,7 @@ module BlizzardApi
|
|
17
17
|
# @!macro request_options
|
18
18
|
#
|
19
19
|
# @!macro response
|
20
|
-
def get(artisan_slug, options
|
20
|
+
def get(artisan_slug, **options)
|
21
21
|
api_request "#{base_url(:community)}/data/artisan/#{artisan_slug}", { ttl: CACHE_TRIMESTER }.merge(options)
|
22
22
|
end
|
23
23
|
|
@@ -29,7 +29,7 @@ module BlizzardApi
|
|
29
29
|
# @!macro request_options
|
30
30
|
#
|
31
31
|
# @!macro response
|
32
|
-
def recipe(artisan_slug, recipe_slug, options
|
32
|
+
def recipe(artisan_slug, recipe_slug, **options)
|
33
33
|
opts = { ttl: CACHE_TRIMESTER }.merge(options)
|
34
34
|
api_request "#{base_url(:community)}/data/artisan/#{artisan_slug}/recipe/#{recipe_slug}", opts
|
35
35
|
end
|
@@ -17,7 +17,7 @@ module BlizzardApi
|
|
17
17
|
# @!macro request_options
|
18
18
|
#
|
19
19
|
# @!macro response
|
20
|
-
def get(class_slug, options
|
20
|
+
def get(class_slug, **options)
|
21
21
|
api_request "#{base_url(:community)}/data/hero/#{class_slug}", { ttl: CACHE_TRIMESTER }.merge(options)
|
22
22
|
end
|
23
23
|
|
@@ -29,7 +29,7 @@ module BlizzardApi
|
|
29
29
|
# @!macro request_options
|
30
30
|
#
|
31
31
|
# @!macro response
|
32
|
-
def skill(class_slug, skill_slug, options
|
32
|
+
def skill(class_slug, skill_slug, **options)
|
33
33
|
opts = { ttl: CACHE_TRIMESTER }.merge(options)
|
34
34
|
api_request "#{base_url(:community)}/data/hero/#{class_slug}/skill/#{skill_slug}", opts
|
35
35
|
end
|
@@ -17,7 +17,7 @@ module BlizzardApi
|
|
17
17
|
# @!macro request_options
|
18
18
|
#
|
19
19
|
# @!macro response
|
20
|
-
def get(follower_slug, options
|
20
|
+
def get(follower_slug, **options)
|
21
21
|
api_request "#{base_url(:community)}/data/follower/#{follower_slug}", { ttl: CACHE_TRIMESTER }.merge(options)
|
22
22
|
end
|
23
23
|
end
|
@@ -17,7 +17,7 @@ module BlizzardApi
|
|
17
17
|
# @!macro request_options
|
18
18
|
#
|
19
19
|
# @!macro response
|
20
|
-
def get(item_slug_and_id, options
|
20
|
+
def get(item_slug_and_id, **options)
|
21
21
|
api_request "#{base_url(:community)}/data/item/#{item_slug_and_id}", { ttl: CACHE_TRIMESTER }.merge(options)
|
22
22
|
end
|
23
23
|
end
|
@@ -16,7 +16,7 @@ module BlizzardApi
|
|
16
16
|
# @!macro request_options
|
17
17
|
#
|
18
18
|
# @!macro response
|
19
|
-
def index(options
|
19
|
+
def index(**options)
|
20
20
|
api_request "#{base_url(:community)}/data/item-type", { ttl: CACHE_TRIMESTER }.merge(options)
|
21
21
|
end
|
22
22
|
|
@@ -27,7 +27,7 @@ module BlizzardApi
|
|
27
27
|
# @!macro request_options
|
28
28
|
#
|
29
29
|
# @!macro response
|
30
|
-
def get(item_type_slug, options
|
30
|
+
def get(item_type_slug, **options)
|
31
31
|
api_request "#{base_url(:community)}/data/item-type/#{item_type_slug}", { ttl: CACHE_TRIMESTER }.merge(options)
|
32
32
|
end
|
33
33
|
end
|
@@ -20,7 +20,7 @@ module BlizzardApi
|
|
20
20
|
# @!macro response
|
21
21
|
#
|
22
22
|
# @see https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow
|
23
|
-
def index(battletag, oauth_token, options
|
23
|
+
def index(battletag, oauth_token, **options)
|
24
24
|
opts = { access_token: oauth_token, ttl: CACHE_TRIMESTER }.merge(options)
|
25
25
|
api_request "#{base_url(:community)}/profile/#{parse_battle_tag(battletag)}/", opts
|
26
26
|
end
|
@@ -36,7 +36,7 @@ module BlizzardApi
|
|
36
36
|
# @!macro response
|
37
37
|
#
|
38
38
|
# @see https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow
|
39
|
-
def hero(battletag, oauth_token, hero_id, options
|
39
|
+
def hero(battletag, oauth_token, hero_id, **options)
|
40
40
|
opts = { access_token: oauth_token, ttl: CACHE_TRIMESTER }.merge(options)
|
41
41
|
api_request "#{base_url(:community)}/profile/#{parse_battle_tag(battletag)}/hero/#{hero_id}", opts
|
42
42
|
end
|
@@ -52,7 +52,7 @@ module BlizzardApi
|
|
52
52
|
# @!macro response
|
53
53
|
#
|
54
54
|
# @see https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow
|
55
|
-
def hero_items(battletag, oauth_token, hero_id, options
|
55
|
+
def hero_items(battletag, oauth_token, hero_id, **options)
|
56
56
|
opts = { access_token: oauth_token, ttl: CACHE_TRIMESTER }.merge(options)
|
57
57
|
api_request "#{base_url(:community)}/profile/#{parse_battle_tag(battletag)}/hero/#{hero_id}/items", opts
|
58
58
|
end
|
@@ -68,7 +68,7 @@ module BlizzardApi
|
|
68
68
|
# @!macro response
|
69
69
|
#
|
70
70
|
# @see https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow
|
71
|
-
def hero_follower_items(battletag, oauth_token, hero_id, options
|
71
|
+
def hero_follower_items(battletag, oauth_token, hero_id, **options)
|
72
72
|
opts = { access_token: oauth_token, ttl: CACHE_TRIMESTER }.merge(options)
|
73
73
|
api_request "#{base_url(:community)}/profile/#{parse_battle_tag(battletag)}/hero/#{hero_id}/follower-items", opts
|
74
74
|
end
|