Class: BlizzardApi::Wow::PvpSeason
- Inherits:
-
GenericDataEndpoint
- Object
- Request
- Request
- GenericDataEndpoint
- BlizzardApi::Wow::PvpSeason
- Defined in:
- lib/blizzard_api/wow/game_data/pvp_season.rb
Overview
This class allows access to World of Warcraft PvP seasons
You can get an instance of this class using the default region as follows:
api_instance = BlizzardApi::Wow.pvp_season
Constant Summary
Constants inherited from Request
Request::CACHE_DAY, Request::CACHE_HOUR, Request::CACHE_TRIMESTER
Constants included from ApiStandards
Instance Attribute Summary
Attributes inherited from Request
Instance Method Summary collapse
-
#leaderboard(season_id, brackets, **options) ⇒ Hash
Returns the leaderboard for a given season and bracket.
-
#leaderboards(season_id, **options) ⇒ Hash
Returns a index of pvp leaderboard for a season.
-
#rewards(season_id, **options) ⇒ Hash
Returns a list of pvp rewards for a season.
Methods inherited from GenericDataEndpoint
Methods inherited from Request
Methods inherited from Request
Constructor Details
This class inherits a constructor from BlizzardApi::Wow::Request
Instance Method Details
#leaderboard(season_id, brackets, **options) ⇒ Hash
Returns the leaderboard for a given season and bracket
in the configuration module
38 39 40 |
# File 'lib/blizzard_api/wow/game_data/pvp_season.rb', line 38 def leaderboard(season_id, brackets, **) api_request "#{endpoint_uri}/#{season_id}/pvp-leaderboard/#{brackets}", **.merge() end |
#leaderboards(season_id, **options) ⇒ Hash
Returns a index of pvp leaderboard for a season
in the configuration module
24 25 26 |
# File 'lib/blizzard_api/wow/game_data/pvp_season.rb', line 24 def leaderboards(season_id, **) api_request "#{endpoint_uri}/#{season_id}/pvp-leaderboard/index", **.merge() end |
#rewards(season_id, **options) ⇒ Hash
Returns a list of pvp rewards for a season
in the configuration module
48 49 50 |
# File 'lib/blizzard_api/wow/game_data/pvp_season.rb', line 48 def rewards(season_id, **) api_request "#{endpoint_uri}/#{season_id}/pvp-reward/index", **.merge() end |