class BlizzardApi::Wow::Quest

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

Public Instance Methods

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

Return data about a quest area

@param id [Integer] Quest category id @!macro request_options

@!macro response

# File lib/blizzard_api/wow/game_data/quest.rb, line 51
def area(id, **options)
  api_request "#{endpoint_uri}/area/#{id}", **default_options.merge(options)
end
areas(**options) click to toggle source

Return a list of quest areas

@!macro request_options

@!macro response

# File lib/blizzard_api/wow/game_data/quest.rb, line 40
def areas(**options)
  api_request "#{endpoint_uri}/area/index", **default_options.merge(options)
end
categories(**options) click to toggle source

Return a list of quest categories

@!macro request_options

@!macro response

# File lib/blizzard_api/wow/game_data/quest.rb, line 19
def categories(**options)
  api_request "#{endpoint_uri}/category/index", **default_options.merge(options)
end
category(id, **options) click to toggle source

Return data about a quest category

@param id [Integer] Quest category id @!macro request_options

@!macro response

# File lib/blizzard_api/wow/game_data/quest.rb, line 30
def category(id, **options)
  api_request "#{endpoint_uri}/category/#{id}", **default_options.merge(options)
end
type(id, **options) click to toggle source

Return data about a quest type

@param id [Integer] Quest type @!macro request_options

@!macro response

# File lib/blizzard_api/wow/game_data/quest.rb, line 72
def type(id, **options)
  api_request "#{endpoint_uri}/type/#{id}", **default_options.merge(options)
end
types(**options) click to toggle source

Return a list of quest types

@!macro request_options

@!macro response

# File lib/blizzard_api/wow/game_data/quest.rb, line 61
def types(**options)
  api_request "#{endpoint_uri}/type/index", **default_options.merge(options)
end

Protected Instance Methods

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