class BlizzardApi::Wow::MythicKeystoneLeaderboard

This class allows access to World of Warcraft mythic raid leaderboard

@see develop.battle.net/documentation/api-reference/world-of-warcraft-game-data-api

You can get an instance of this class using the default region as follows:

api_instance = BlizzardApi::Wow.mythic_keystone_leaderboard

Public Instance Methods

get(connected_realm_id, dungeon_id, period, **options) click to toggle source

Fetch mythic keystone leaderboard for the specified realm, dungeon and period

@param connected_realm_id [Integer] One of the IDs returned by the {ConnectedRealm#index}

@!macro request_options

@!macro response

# File lib/blizzard_api/wow/game_data/mythic_keystone_leaderboard.rb, line 33
def get(connected_realm_id, dungeon_id, period, **options)
  api_request "#{endpoint_uri(connected_realm_id)}/#{dungeon_id}/period/#{period}", **default_options(options)
end
index(connected_realm_id, **options) click to toggle source

Fetch mythic keystone leaderboards for the specified realm

@param connected_realm_id [Integer] One of the IDs returned by the {ConnectedRealm#index}

@!macro request_options

@!macro response

# File lib/blizzard_api/wow/game_data/mythic_keystone_leaderboard.rb, line 21
def index(connected_realm_id, **options)
  api_request "#{endpoint_uri(connected_realm_id)}/index", **default_options(options)
end

Private Instance Methods

default_options(options) click to toggle source
# File lib/blizzard_api/wow/game_data/mythic_keystone_leaderboard.rb, line 39
def default_options(options)
  { ttl: CACHE_DAY, namespace: :dynamic }.merge options
end
endpoint_uri(connected_realm_id) click to toggle source
# File lib/blizzard_api/wow/game_data/mythic_keystone_leaderboard.rb, line 43
def endpoint_uri(connected_realm_id)
  "#{base_url(:game_data)}/connected-realm/#{connected_realm_id}/mythic-leaderboard"
end