class BlizzardApi::Wow::TechTalent

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

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

Fetch a tech talent media

@param id [Integer] Tech talent id

@!macro request_options

@!macro response

# File lib/blizzard_api/wow/game_data/tech_talent.rb, line 43
def media(id, **options)
  api_request "#{base_url(:media)}/tech-talent/#{id}", **default_options.merge(options)
end
tech_talent_tree(id, **options) click to toggle source

Fetch a tech talent tree

@param id [Integer] Tech talent id

@!macro request_options

@!macro response

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

Fetch tech talent trees

@!macro request_options

@!macro response

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

Protected Instance Methods

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