class BlizzardApi::Wow::Covenant

This class allows access to World of Warcraft azerite essences

@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.azerite_essence

Public Instance Methods

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

Fetch a conduit by its id

@param id Conduit id

@!macro request_options

@!macro response

# File lib/blizzard_api/wow/game_data/covenant.rb, line 65
def conduit(id, **options)
  api_request "#{base_url(:game_data)}/covenant/conduit/#{id}", **default_options.merge(options)
end
conduits(**options) click to toggle source

Fetch all conduits

@!macro request_options

@!macro response

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

Fetch media for one of the covenants listed by the {#index} using its id

@param id [Integer] Covenant id

@!macro request_options

@!macro response

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

Fetch a soulbind by its id

@param id Soulbind id

@!macro request_options

@!macro response

# File lib/blizzard_api/wow/game_data/covenant.rb, line 43
def soulbind(id, **options)
  api_request "#{base_url(:game_data)}/covenant/soulbind/#{id}", **default_options.merge(options)
end
soulbinds(**options) click to toggle source

Fetch all soulbinds

@!macro request_options

@!macro response

# File lib/blizzard_api/wow/game_data/covenant.rb, line 31
def soulbinds(**options)
  api_request "#{base_url(:game_data)}/covenant/soulbind/index", **default_options.merge(options)
end

Protected Instance Methods

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