class BlizzardApi::Wow::Talent

This class allows access to World of Warcraft talent 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.talent

Public Instance Methods

pvp_talent(id, **options) click to toggle source

Fetch pvp a talent

@param id [Integer] Pvp talent id

@!macro request_options

@!macro response

# File lib/blizzard_api/wow/game_data/talent.rb, line 31
def pvp_talent(id, **options)
  api_request "#{base_url(:game_data)}/pvp-talent/#{id}", **default_options.merge(options)
end
pvp_talents(**options) click to toggle source

Fetch pvp talents

@!macro request_options

@!macro response

# File lib/blizzard_api/wow/game_data/talent.rb, line 19
def pvp_talents(**options)
  api_request "#{base_url(:game_data)}/pvp-talent/index", **default_options.merge(options)
end

Protected Instance Methods

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