class BlizzardApi::Wow::MythicKeystone

This class allows access to World of Warcraft achievements

@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

Public Instance Methods

complete() click to toggle source
# File lib/blizzard_api/wow/game_data/mythic_keystone.rb, line 17
def complete
  raise BlizzardApi::ApiException, 'There are too many creatures to fetch complete data'
end
dungeon(id, **options) click to toggle source

Fetch all possible data for one of the items listed by the {#dungeons} using its id

@param id [Integer] Dungeon id

@!macro request_options

@!macro response

# File lib/blizzard_api/wow/game_data/mythic_keystone.rb, line 39
def dungeon(id, **options)
  api_request "#{endpoint_uri}/dungeon/#{id}", **default_options.merge(options)
end
dungeons(**options) click to toggle source

Fetch all mythic keystone dungeons

@!macro request_options

@!macro response

# File lib/blizzard_api/wow/game_data/mythic_keystone.rb, line 27
def dungeons(**options)
  api_request "#{endpoint_uri}/dungeon/index", **default_options.merge(options)
end
get() click to toggle source
# File lib/blizzard_api/wow/game_data/mythic_keystone.rb, line 13
def get
  raise BlizzardApi::ApiException, 'Mythic keystone endpoint does not have a get method'
end
period(id, **options) click to toggle source

Fetch all possible data for one of the items listed by the {#periods} using its id

@param id [Integer] Mythic keystone period id

@!macro request_options

@!macro response

# File lib/blizzard_api/wow/game_data/mythic_keystone.rb, line 61
def period(id, **options)
  api_request "#{endpoint_uri}/period/#{id}", **default_options.merge(options)
end
periods(**options) click to toggle source

Fetch all mythic keystone periods

@!macro request_options

@!macro response

# File lib/blizzard_api/wow/game_data/mythic_keystone.rb, line 49
def periods(**options)
  api_request "#{endpoint_uri}/period/index", **default_options.merge(options)
end
season(id, **options) click to toggle source

Fetch all possible data for one of the items listed by the {#seasons} using its id

@param id [Integer] Mythic keystone season id

@!macro request_options

@!macro response

# File lib/blizzard_api/wow/game_data/mythic_keystone.rb, line 83
def season(id, **options)
  api_request "#{endpoint_uri}/season/#{id}", **default_options.merge(options)
end
seasons(**options) click to toggle source

Fetch all mythic keystone seasons

@!macro request_options

@!macro response

# File lib/blizzard_api/wow/game_data/mythic_keystone.rb, line 71
def seasons(**options)
  api_request "#{endpoint_uri}/season/index", **default_options.merge(options)
end

Protected Instance Methods

endpoint_setup() click to toggle source
# File lib/blizzard_api/wow/game_data/mythic_keystone.rb, line 89
def endpoint_setup
  @endpoint = 'mythic-keystone'
  @namespace = :dynamic
  @collection = 'mythic-keystones'
  @ttl = CACHE_TRIMESTER
end