class BlizzardApi::Wow::GuildCrest
This class allows access to World of Warcraft guild crest data
@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.guild_crest
Public Instance Methods
Return guild border assets by its id
@param id [Integer] Border id
@!macro request_options @option options [Boolean] :classic If set to true, this method will call the classic version @option options [Boolean] :classic1x If set to true, this method will call the classic era version
@!macro response
# File lib/blizzard_api/wow/game_data/guild_crest.rb, line 27 def border_media(id, **options) api_request "#{base_url(:media)}/#{@endpoint}/border/#{id}", **default_options.merge(options) end
Return guild embelm assets by its id
@param id [Integer] Emblem id @option options [Boolean] :classic If set to true, this method will call the classic version @option options [Boolean] :classic1x If set to true, this method will call the classic era version
@!macro request_options
@!macro response
# File lib/blizzard_api/wow/game_data/guild_crest.rb, line 41 def emblem_media(id, **options) api_request "#{base_url(:media)}/#{@endpoint}/emblem/#{id}", **default_options.merge(options) end
# File lib/blizzard_api/wow/game_data/guild_crest.rb, line 13 def get raise BlizzardApi::ApiException, 'This endpoint doens\'t have a get method' end
Protected Instance Methods
# File lib/blizzard_api/wow/game_data/guild_crest.rb, line 47 def endpoint_setup @endpoint = 'guild-crest' @namespace = :static @ttl = CACHE_TRIMESTER end