class BlizzardApi::Wow::Spell

This class allows access to World of Warcraft spell data

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

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

api_instance = BlizzardApi::Wow.spell

Public Instance Methods

complete() click to toggle source

This method overrides the inherited default behavior to prevent high server load and fetch time

@!macro response

# File lib/blizzard_api/wow/game_data/spell.rb, line 27
def complete
  raise BlizzardApi::ApiException, 'This endpoint does not have a complete method'
end
display_media(id, **options) click to toggle source

Fetch media for a spell

@param id [Integer] Spell id

@!macro request_options

@!macro response

# File lib/blizzard_api/wow/game_data/spell.rb, line 39
def display_media(id, **options)
  api_request "#{base_url(:media)}/spell/#{id}", **default_options.merge(options)
end
index() click to toggle source

This method overrides the inherited default behavior to prevent high server load and fetch time

@!macro response

# File lib/blizzard_api/wow/game_data/spell.rb, line 19
def index
  raise BlizzardApi::ApiException, 'This endpoint does not have a index method'
end

Protected Instance Methods

endpoint_setup() click to toggle source
# File lib/blizzard_api/wow/game_data/spell.rb, line 45
def endpoint_setup
  @endpoint = 'spell'
  @namespace = :static
  @collection = 'spells'
  @ttl = CACHE_TRIMESTER
end