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.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +9 -1
  3. data/Gemfile.lock +1 -1
  4. data/README.md +57 -215
  5. data/lib/blizzard_api/diablo/community/act.rb +2 -2
  6. data/lib/blizzard_api/diablo/community/artisan.rb +2 -2
  7. data/lib/blizzard_api/diablo/community/character.rb +2 -2
  8. data/lib/blizzard_api/diablo/community/follower.rb +1 -1
  9. data/lib/blizzard_api/diablo/community/item.rb +1 -1
  10. data/lib/blizzard_api/diablo/community/item_type.rb +2 -2
  11. data/lib/blizzard_api/diablo/community/profile.rb +4 -4
  12. data/lib/blizzard_api/diablo/game_data/generic_data_endpoint.rb +3 -3
  13. data/lib/blizzard_api/hearthstone/game_data/back.rb +1 -1
  14. data/lib/blizzard_api/hearthstone/game_data/card.rb +2 -2
  15. data/lib/blizzard_api/hearthstone/game_data/generic_data_endpoint.rb +2 -2
  16. data/lib/blizzard_api/request.rb +2 -2
  17. data/lib/blizzard_api/starcraft/community/account.rb +1 -1
  18. data/lib/blizzard_api/starcraft/community/ladder.rb +2 -2
  19. data/lib/blizzard_api/starcraft/community/legacy.rb +6 -6
  20. data/lib/blizzard_api/starcraft/community/profile.rb +5 -5
  21. data/lib/blizzard_api/starcraft/game_data/league.rb +1 -1
  22. data/lib/blizzard_api/version.rb +1 -1
  23. data/lib/blizzard_api/wow.rb +0 -7
  24. data/lib/blizzard_api/wow/game_data/achievement.rb +3 -3
  25. data/lib/blizzard_api/wow/game_data/auction.rb +1 -1
  26. data/lib/blizzard_api/wow/game_data/azerite_essence.rb +1 -1
  27. data/lib/blizzard_api/wow/game_data/covenant.rb +5 -5
  28. data/lib/blizzard_api/wow/game_data/creature.rb +6 -6
  29. data/lib/blizzard_api/wow/game_data/generic_data_endpoint.rb +3 -3
  30. data/lib/blizzard_api/wow/game_data/guild_crest.rb +2 -2
  31. data/lib/blizzard_api/wow/game_data/item.rb +6 -6
  32. data/lib/blizzard_api/wow/game_data/journal.rb +8 -8
  33. data/lib/blizzard_api/wow/game_data/modified_crafting.rb +4 -4
  34. data/lib/blizzard_api/wow/game_data/mythic_keystone.rb +6 -6
  35. data/lib/blizzard_api/wow/game_data/mythic_keystone_affix.rb +1 -1
  36. data/lib/blizzard_api/wow/game_data/mythic_keystone_leaderboard.rb +2 -2
  37. data/lib/blizzard_api/wow/game_data/mythic_raid_leaderboard.rb +1 -1
  38. data/lib/blizzard_api/wow/game_data/pet.rb +4 -4
  39. data/lib/blizzard_api/wow/game_data/playable_class.rb +4 -4
  40. data/lib/blizzard_api/wow/game_data/playable_specialization.rb +2 -2
  41. data/lib/blizzard_api/wow/game_data/profession.rb +4 -4
  42. data/lib/blizzard_api/wow/game_data/pvp_season.rb +3 -3
  43. data/lib/blizzard_api/wow/game_data/pvp_tier.rb +1 -1
  44. data/lib/blizzard_api/wow/game_data/quest.rb +6 -6
  45. data/lib/blizzard_api/wow/game_data/reputation.rb +4 -4
  46. data/lib/blizzard_api/wow/game_data/spell.rb +1 -1
  47. data/lib/blizzard_api/wow/game_data/talent.rb +2 -2
  48. data/lib/blizzard_api/wow/game_data/tech_talent.rb +3 -3
  49. data/lib/blizzard_api/wow/game_data/wow_token.rb +1 -1
  50. data/lib/blizzard_api/wow/profile/character_profile.rb +51 -51
  51. data/lib/blizzard_api/wow/profile/guild.rb +8 -8
  52. data/lib/blizzard_api/wow/profile/profile.rb +5 -5
  53. data/lib/blizzard_api/wow/search/search_request.rb +1 -1
  54. metadata +2 -2
@@ -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(:game_data)}/#{@endpoint}/", default_options.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(:game_data)}/#{@endpoint}/#{id}", default_options.merge(options)
32
32
  end
33
33
 
@@ -39,7 +39,7 @@ module BlizzardApi
39
39
  # @!macro request_options
40
40
  #
41
41
  # @!macro response
42
- def leaderboard(id, leaderboard_id, options = {})
42
+ def leaderboard(id, leaderboard_id, **options)
43
43
  opts = default_options.merge(options)
44
44
  api_request "#{base_url(:game_data)}/#{@endpoint}/#{id}/leaderboard/#{leaderboard_id}", opts
45
45
  end
@@ -36,7 +36,7 @@ module BlizzardApi
36
36
  # option is invalid
37
37
  #
38
38
  # @!macro response
39
- def search(search_options = {}, options = {})
39
+ def search(search_options = {}, **options)
40
40
  validate_search_options search_options if options.include? :validate_fields
41
41
 
42
42
  api_request "#{base_url(:community)}/cardbacks", default_options.merge(options).merge(search_options)
@@ -72,7 +72,7 @@ module BlizzardApi
72
72
  # option is invalid
73
73
  #
74
74
  # @!macro response
75
- def search(search_options = {}, options = {})
75
+ def search(search_options = {}, **options)
76
76
  validate_search_options search_options if options.include? :validate_fields
77
77
 
78
78
  api_request "#{base_url(:community)}/cards", default_options.merge(options).merge(search_options)
@@ -90,7 +90,7 @@ module BlizzardApi
90
90
  # @!macro request_options
91
91
  #
92
92
  # @!macro response
93
- def get(id_or_slug, game_mode = 'constructed', options = {})
93
+ def get(id_or_slug, game_mode = 'constructed', **options)
94
94
  super id_or_slug, { gameMode: game_mode }.merge(options)
95
95
  end
96
96
 
@@ -20,7 +20,7 @@ module BlizzardApi
20
20
  # @!macro request_options
21
21
  #
22
22
  # @!macro response
23
- def index(options = {})
23
+ def index(**options)
24
24
  api_request "#{base_url(:community)}/#{@endpoint}/", default_options.merge(options)
25
25
  end
26
26
 
@@ -31,7 +31,7 @@ module BlizzardApi
31
31
  # @!macro request_options
32
32
  #
33
33
  # @!macro response
34
- def get(id, options = {})
34
+ def get(id, **options)
35
35
  api_request "#{base_url(:community)}/#{@endpoint}/#{id}", default_options.merge(options)
36
36
  end
37
37
 
@@ -115,7 +115,7 @@ module BlizzardApi
115
115
  BlizzardApi.access_token = JSON.parse(response.body)['access_token']
116
116
  end
117
117
 
118
- def request(url, options = {})
118
+ def request(url, **options)
119
119
  # Creates the whole url for request
120
120
  parsed_url = URI.parse(url)
121
121
 
@@ -163,7 +163,7 @@ module BlizzardApi
163
163
  !options.fetch(:ignore_cache, false)
164
164
  end
165
165
 
166
- def consume_api(url, options = {})
166
+ def consume_api(url, **options)
167
167
  # Creates a HTTP connection and request to ensure thread safety
168
168
  http = Net::HTTP.new(url.host, url.port)
169
169
  http.use_ssl = true
@@ -15,7 +15,7 @@ module BlizzardApi
15
15
  #
16
16
  # @param [Integer] account_id Account ID
17
17
  # @!macro request_options
18
- def player(account_id, options = {})
18
+ def player(account_id, **options)
19
19
  api_request "#{base_url(:community)}/player/#{account_id}", { ttl: CACHE_DAY }.merge(options)
20
20
  end
21
21
  end
@@ -15,7 +15,7 @@ module BlizzardApi
15
15
  #
16
16
  # @!macro sc2_regions
17
17
  # @!macro request_options
18
- def grandmaster(region_id, options = {})
18
+ def grandmaster(region_id, **options)
19
19
  reg = resolve_region(region_id)
20
20
  api_request "#{base_url(:community)}/ladder/grandmaster/#{reg}", { ttl: CACHE_DAY }.merge(options)
21
21
  end
@@ -25,7 +25,7 @@ module BlizzardApi
25
25
  #
26
26
  # @!macro sc2_regions
27
27
  # @!macro request_options
28
- def season(region_id, options = {})
28
+ def season(region_id, **options)
29
29
  reg = resolve_region(region_id)
30
30
  api_request "#{base_url(:community)}/ladder/season/#{reg}", { ttl: CACHE_DAY }.merge(options)
31
31
  end
@@ -18,7 +18,7 @@ module BlizzardApi
18
18
  # @param [Integer] realm_id Realm ID
19
19
  # @param [Integer] profile_id Profile ID
20
20
  # @!macro request_options
21
- def profile(region_id, realm_id, profile_id, options = {})
21
+ def profile(region_id, realm_id, profile_id, **options)
22
22
  reg = resolve_region(region_id)
23
23
  opts = { ttl: CACHE_DAY }.merge(options)
24
24
  api_request "#{base_url(:community)}/legacy/profile/#{reg}/#{realm_id}/#{profile_id}", opts
@@ -31,7 +31,7 @@ module BlizzardApi
31
31
  # @param [Integer] realm_id Realm ID
32
32
  # @param [Integer] profile_id Profile ID
33
33
  # @!macro request_options
34
- def ladders(region_id, realm_id, profile_id, options = {})
34
+ def ladders(region_id, realm_id, profile_id, **options)
35
35
  reg = resolve_region(region_id)
36
36
  opts = { ttl: CACHE_DAY }.merge(options)
37
37
  api_request "#{base_url(:community)}/legacy/profile/#{reg}/#{realm_id}/#{profile_id}/ladder ", opts
@@ -44,7 +44,7 @@ module BlizzardApi
44
44
  # @param [Integer] realm_id Realm ID
45
45
  # @param [Integer] profile_id Profile ID
46
46
  # @!macro request_options
47
- def match(region_id, realm_id, profile_id, options = {})
47
+ def match(region_id, realm_id, profile_id, **options)
48
48
  reg = resolve_region(region_id)
49
49
  opts = { ttl: CACHE_DAY }.merge(options)
50
50
  api_request "#{base_url(:community)}/legacy/profile/#{reg}/#{realm_id}/#{profile_id}/matches", opts
@@ -56,7 +56,7 @@ module BlizzardApi
56
56
  # @!macro sc2_regions
57
57
  # @param [Integer] ladder_id Ladder ID
58
58
  # @!macro request_options
59
- def ladder(region_id, ladder_id, options = {})
59
+ def ladder(region_id, ladder_id, **options)
60
60
  reg = resolve_region(region_id)
61
61
  opts = { ttl: CACHE_DAY }.merge(options)
62
62
  api_request "#{base_url(:community)}/legacy/ladder/#{reg}/#{ladder_id}", opts
@@ -67,7 +67,7 @@ module BlizzardApi
67
67
  #
68
68
  # @!macro sc2_regions
69
69
  # @!macro request_options
70
- def achievements(region_id, options = {})
70
+ def achievements(region_id, **options)
71
71
  reg = resolve_region(region_id)
72
72
  opts = { ttl: CACHE_DAY }.merge(options)
73
73
  api_request "#{base_url(:community)}/legacy/data/achievements/#{reg}", opts
@@ -78,7 +78,7 @@ module BlizzardApi
78
78
  #
79
79
  # @!macro sc2_regions
80
80
  # @!macro request_options
81
- def rewards(region_id, options = {})
81
+ def rewards(region_id, **options)
82
82
  reg = resolve_region(region_id)
83
83
  opts = { ttl: CACHE_DAY }.merge(options)
84
84
  api_request "#{base_url(:community)}/legacy/data/rewards/#{reg}", opts
@@ -15,7 +15,7 @@ module BlizzardApi
15
15
  #
16
16
  # @!macro sc2_regions
17
17
  # @!macro request_options
18
- def static(region_id, options = {})
18
+ def static(region_id, **options)
19
19
  reg = resolve_region(region_id)
20
20
  api_request "#{base_url(:community)}/static/profile/#{reg}", { ttl: CACHE_DAY }.merge(options)
21
21
  end
@@ -27,7 +27,7 @@ module BlizzardApi
27
27
  # @param [Integer] realm_id Realm ID
28
28
  # @param [Integer] profile_id Profile ID
29
29
  # @!macro request_options
30
- def metadata(region_id, realm_id, profile_id, options = {})
30
+ def metadata(region_id, realm_id, profile_id, **options)
31
31
  reg = resolve_region(region_id)
32
32
  opts = { ttl: CACHE_DAY }.merge(options)
33
33
  api_request "#{base_url(:community)}/metadata/profile/#{reg}/#{realm_id}/#{profile_id}", opts
@@ -40,7 +40,7 @@ module BlizzardApi
40
40
  # @param [Integer] realm_id Realm ID
41
41
  # @param [Integer] profile_id Profile ID
42
42
  # @!macro request_options
43
- def profile(region_id, realm_id, profile_id, options = {})
43
+ def profile(region_id, realm_id, profile_id, **options)
44
44
  reg = resolve_region(region_id)
45
45
  opts = { ttl: CACHE_DAY }.merge(options)
46
46
  api_request "#{base_url(:community)}/profile/#{reg}/#{realm_id}/#{profile_id}", opts
@@ -53,7 +53,7 @@ module BlizzardApi
53
53
  # @param [Integer] realm_id Realm ID
54
54
  # @param [Integer] profile_id Profile ID
55
55
  # @!macro request_options
56
- def ladder_summary(region_id, realm_id, profile_id, options = {})
56
+ def ladder_summary(region_id, realm_id, profile_id, **options)
57
57
  reg = resolve_region(region_id)
58
58
  opts = { ttl: CACHE_DAY }.merge(options)
59
59
  api_request "#{base_url(:community)}profile/#{reg}/#{realm_id}/#{profile_id}/ladder/summary ", opts
@@ -66,7 +66,7 @@ module BlizzardApi
66
66
  # @param [Integer] realm_id Realm ID
67
67
  # @param [Integer] profile_id Profile ID
68
68
  # @!macro request_options
69
- def ladder(region_id, realm_id, profile_id, ladder_id, options = {})
69
+ def ladder(region_id, realm_id, profile_id, ladder_id, **options)
70
70
  reg = resolve_region(region_id)
71
71
  opts = { ttl: CACHE_DAY }.merge(options)
72
72
  api_request "#{base_url(:community)}/profile/#{reg}/#{realm_id}/#{profile_id}/ladder/#{ladder_id}", opts
@@ -18,7 +18,7 @@ module BlizzardApi
18
18
  # @param [Integer] team_type Team type
19
19
  # @param [Integer] league_id League id
20
20
  # @!macro request_options
21
- def get(season_id, queue_id, team_type, league_id, options = {})
21
+ def get(season_id, queue_id, team_type, league_id, **options)
22
22
  opts = { ttl: CACHE_DAY }.merge(options)
23
23
  api_request "#{base_url(:game_data)}/league/#{season_id}/#{queue_id}/#{team_type}/#{league_id}", opts
24
24
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  module BlizzardApi
4
4
  # Gem version
5
- VERSION = '0.5.4'
5
+ VERSION = '0.5.5'
6
6
  end
@@ -275,13 +275,6 @@ module BlizzardApi
275
275
  BlizzardApi::Wow::WowToken.new(region)
276
276
  end
277
277
 
278
- ##
279
- # @param region [String] API Region
280
- # @return {Character}
281
- def self.character(region = BlizzardApi.region)
282
- BlizzardApi::Wow::Character.new(region)
283
- end
284
-
285
278
  require_relative 'wow/profile/profile'
286
279
  require_relative 'wow/profile/guild'
287
280
  require_relative 'wow/profile/character_profile'
@@ -24,7 +24,7 @@ module BlizzardApi
24
24
  # @!macro request_options
25
25
  #
26
26
  # @!macro response
27
- def categories(options = {})
27
+ def categories(**options)
28
28
  api_request "#{endpoint_uri('category')}/index", default_options.merge(options)
29
29
  end
30
30
 
@@ -34,7 +34,7 @@ module BlizzardApi
34
34
  # @!macro request_options
35
35
  #
36
36
  # @!macro response
37
- def category(id, options = {})
37
+ def category(id, **options)
38
38
  api_request "#{endpoint_uri('category')}/#{id}", default_options.merge(options)
39
39
  end
40
40
 
@@ -44,7 +44,7 @@ module BlizzardApi
44
44
  # @!macro request_options
45
45
  #
46
46
  # @!macro response
47
- def media(id, options = {})
47
+ def media(id, **options)
48
48
  api_request "#{base_url(:media)}/achievement/#{id}", default_options.merge(options)
49
49
  end
50
50
 
@@ -17,7 +17,7 @@ module BlizzardApi
17
17
  # @!macro request_options
18
18
  #
19
19
  # @!macro response
20
- def get(connected_realm_id, options = {})
20
+ def get(connected_realm_id, **options)
21
21
  opts = { ttl: CACHE_HOUR, namespace: :dynamic }.merge(options)
22
22
  api_request "#{base_url(:game_data)}/connected-realm/#{connected_realm_id}/auctions", opts
23
23
  end
@@ -20,7 +20,7 @@ module BlizzardApi
20
20
  # @!macro request_options
21
21
  #
22
22
  # @!macro response
23
- def media(id, options = {})
23
+ def media(id, **options)
24
24
  api_request "#{base_url(:media)}/azerite-essence/#{id}", default_options.merge(options)
25
25
  end
26
26
 
@@ -18,7 +18,7 @@ module BlizzardApi
18
18
  # @!macro request_options
19
19
  #
20
20
  # @!macro response
21
- def media(id, options = {})
21
+ def media(id, **options)
22
22
  api_request "#{base_url(:media)}/covenant/#{id}", default_options.merge(options)
23
23
  end
24
24
 
@@ -28,7 +28,7 @@ module BlizzardApi
28
28
  # @!macro request_options
29
29
  #
30
30
  # @!macro response
31
- def soulbinds(options = {})
31
+ def soulbinds(**options)
32
32
  api_request "#{base_url(:game_data)}/covenant/soulbind/index", default_options.merge(options)
33
33
  end
34
34
 
@@ -40,7 +40,7 @@ module BlizzardApi
40
40
  # @!macro request_options
41
41
  #
42
42
  # @!macro response
43
- def soulbind(id, options = {})
43
+ def soulbind(id, **options)
44
44
  api_request "#{base_url(:game_data)}/covenant/soulbind/#{id}", default_options.merge(options)
45
45
  end
46
46
 
@@ -50,7 +50,7 @@ module BlizzardApi
50
50
  # @!macro request_options
51
51
  #
52
52
  # @!macro response
53
- def conduits(options = {})
53
+ def conduits(**options)
54
54
  api_request "#{base_url(:game_data)}/covenant/conduit/index", default_options.merge(options)
55
55
  end
56
56
 
@@ -62,7 +62,7 @@ module BlizzardApi
62
62
  # @!macro request_options
63
63
  #
64
64
  # @!macro response
65
- def conduit(id, options = {})
65
+ def conduit(id, **options)
66
66
  api_request "#{base_url(:game_data)}/covenant/conduit/#{id}", default_options.merge(options)
67
67
  end
68
68
 
@@ -27,7 +27,7 @@ module BlizzardApi
27
27
  # @option options [Boolean] :classic If set to true, this method will call the classic version
28
28
  #
29
29
  # @!macro response
30
- def families(options = {})
30
+ def families(**options)
31
31
  api_request "#{endpoint_uri('family')}/index", default_options.merge(options)
32
32
  end
33
33
 
@@ -40,7 +40,7 @@ module BlizzardApi
40
40
  # @option options [Boolean] :classic If set to true, this method will call the classic version
41
41
  #
42
42
  # @!macro response
43
- def family(id, options = {})
43
+ def family(id, **options)
44
44
  api_request "#{endpoint_uri('family')}/#{id}", default_options.merge(options)
45
45
  end
46
46
 
@@ -53,7 +53,7 @@ module BlizzardApi
53
53
  # @option options [Boolean] :classic If set to true, this method will call the classic version
54
54
  #
55
55
  # @!macro response
56
- def family_media(id, options = {})
56
+ def family_media(id, **options)
57
57
  api_request "#{base_url(:media)}/creature-family/#{id}", default_options.merge(options)
58
58
  end
59
59
 
@@ -64,7 +64,7 @@ module BlizzardApi
64
64
  # @option options [Boolean] :classic If set to true, this method will call the classic version
65
65
  #
66
66
  # @!macro response
67
- def types(options = {})
67
+ def types(**options)
68
68
  api_request "#{endpoint_uri('type')}/index", default_options.merge(options)
69
69
  end
70
70
 
@@ -77,7 +77,7 @@ module BlizzardApi
77
77
  # @option options [Boolean] :classic If set to true, this method will call the classic version
78
78
  #
79
79
  # @!macro response
80
- def type(id, options = {})
80
+ def type(id, **options)
81
81
  api_request "#{endpoint_uri('type')}/#{id}", default_options.merge(options)
82
82
  end
83
83
 
@@ -90,7 +90,7 @@ module BlizzardApi
90
90
  # @option options [Boolean] :classic If set to true, this method will call the classic version
91
91
  #
92
92
  # @!macro response
93
- def display_media(id, options = {})
93
+ def display_media(id, **options)
94
94
  api_request "#{base_url(:media)}/creature-display/#{id}", default_options.merge(options)
95
95
  end
96
96
 
@@ -18,7 +18,7 @@ module BlizzardApi
18
18
  #
19
19
  # @!macro request_options
20
20
  # @!macro response
21
- def index(options = {})
21
+ def index(**options)
22
22
  api_request "#{endpoint_uri}/index", default_options.merge(options)
23
23
  end
24
24
 
@@ -29,13 +29,13 @@ module BlizzardApi
29
29
  # @!macro request_options
30
30
  #
31
31
  # @!macro response
32
- def get(id, options = {})
32
+ def get(id, **options)
33
33
  api_request "#{endpoint_uri}/#{id}", default_options.merge(options)
34
34
  end
35
35
 
36
36
  ##
37
37
  # @!macro complete
38
- def complete(options = {})
38
+ def complete(**options)
39
39
  [].tap do |complete_data|
40
40
  index_data = index options
41
41
  index_data[@collection.to_sym].each do |item|
@@ -23,7 +23,7 @@ module BlizzardApi
23
23
  # @option options [Boolean] :classic If set to true, this method will call the classic version
24
24
  #
25
25
  # @!macro response
26
- def border_media(id, options = {})
26
+ def border_media(id, **options)
27
27
  api_request "#{base_url(:media)}/#{@endpoint}/border/#{id}", default_options.merge(options)
28
28
  end
29
29
 
@@ -36,7 +36,7 @@ module BlizzardApi
36
36
  # @!macro request_options
37
37
  #
38
38
  # @!macro response
39
- def emblem_media(id, options = {})
39
+ def emblem_media(id, **options)
40
40
  api_request "#{base_url(:media)}/#{@endpoint}/emblem/#{id}", default_options.merge(options)
41
41
  end
42
42
 
@@ -35,7 +35,7 @@ module BlizzardApi
35
35
  # @option options [Boolean] :classic If set to true, this method will call the classic version
36
36
  #
37
37
  # @!macro response
38
- def classes(options = {})
38
+ def classes(**options)
39
39
  api_request "#{endpoint_uri('class')}/index", default_options.merge(options)
40
40
  end
41
41
 
@@ -47,7 +47,7 @@ module BlizzardApi
47
47
  # @option options [Boolean] :classic If set to true, this method will call the classic version
48
48
  #
49
49
  # @!macro response
50
- def class(id, options = {})
50
+ def class(id, **options)
51
51
  api_request "#{endpoint_uri('class')}/#{id}", default_options.merge(options)
52
52
  end
53
53
 
@@ -60,7 +60,7 @@ module BlizzardApi
60
60
  # @option options [Boolean] :classic If set to true, this method will call the classic version
61
61
  #
62
62
  # @!macro response
63
- def subclass(id, subclass_id, options = {})
63
+ def subclass(id, subclass_id, **options)
64
64
  api_request "#{endpoint_uri('class')}/#{id}/item-subclass/#{subclass_id}", default_options.merge(options)
65
65
  end
66
66
 
@@ -73,7 +73,7 @@ module BlizzardApi
73
73
  # @option options [Boolean] :classic If set to true, this method will call the classic version
74
74
  #
75
75
  # @!macro response
76
- def media(id, options = {})
76
+ def media(id, **options)
77
77
  api_request "#{base_url(:media)}/item/#{id}", default_options.merge(options)
78
78
  end
79
79
 
@@ -83,7 +83,7 @@ module BlizzardApi
83
83
  # @!macro request_options
84
84
  #
85
85
  # @!macro response
86
- def sets(options = {})
86
+ def sets(**options)
87
87
  api_request "#{endpoint_uri('set')}/index", default_options.merge(options)
88
88
  end
89
89
 
@@ -94,7 +94,7 @@ module BlizzardApi
94
94
  # @!macro request_options
95
95
  #
96
96
  # @!macro response
97
- def set(id, options = {})
97
+ def set(id, **options)
98
98
  api_request "#{endpoint_uri('set')}/#{id}", default_options.merge(options)
99
99
  end
100
100