Module: BlizzardApi

Extended by:
Configuration, TokenManager
Defined in:
lib/blizzard_api.rb,
lib/blizzard_api/wow.rb,
lib/blizzard_api/diablo.rb,
lib/blizzard_api/request.rb,
lib/blizzard_api/version.rb,
lib/blizzard_api/wow/slug.rb,
lib/blizzard_api/exception.rb,
lib/blizzard_api/starcraft.rb,
lib/blizzard_api/hearthstone.rb,
lib/blizzard_api/wow/request.rb,
lib/blizzard_api/api_response.rb,
lib/blizzard_api/api_standards.rb,
lib/blizzard_api/configuration.rb,
lib/blizzard_api/token_manager.rb,
lib/blizzard_api/diablo/request.rb,
lib/blizzard_api/starcraft/request.rb,
lib/blizzard_api/wow/game_data/pet.rb,
lib/blizzard_api/wow/game_data/toy.rb,
lib/blizzard_api/wow/profile/guild.rb,
lib/blizzard_api/wow/game_data/item.rb,
lib/blizzard_api/hearthstone/request.rb,
lib/blizzard_api/wow/game_data/media.rb,
lib/blizzard_api/wow/game_data/mount.rb,
lib/blizzard_api/wow/game_data/quest.rb,
lib/blizzard_api/wow/game_data/realm.rb,
lib/blizzard_api/wow/game_data/spell.rb,
lib/blizzard_api/wow/game_data/title.rb,
lib/blizzard_api/diablo/community/act.rb,
lib/blizzard_api/diablo/game_data/era.rb,
lib/blizzard_api/wow/game_data/region.rb,
lib/blizzard_api/wow/game_data/talent.rb,
lib/blizzard_api/diablo/community/item.rb,
lib/blizzard_api/wow/game_data/auction.rb,
lib/blizzard_api/wow/game_data/journal.rb,
lib/blizzard_api/wow/game_data/covenant.rb,
lib/blizzard_api/wow/game_data/creature.rb,
lib/blizzard_api/wow/game_data/heirloom.rb,
lib/blizzard_api/wow/game_data/pvp_tier.rb,
lib/blizzard_api/diablo/game_data/season.rb,
lib/blizzard_api/wow/game_data/wow_token.rb,
lib/blizzard_api/diablo/community/artisan.rb,
lib/blizzard_api/diablo/community/profile.rb,
lib/blizzard_api/wow/game_data/power_type.rb,
lib/blizzard_api/wow/game_data/profession.rb,
lib/blizzard_api/wow/game_data/pvp_region.rb,
lib/blizzard_api/wow/game_data/pvp_season.rb,
lib/blizzard_api/wow/game_data/reputation.rb,
lib/blizzard_api/diablo/community/follower.rb,
lib/blizzard_api/wow/game_data/achievement.rb,
lib/blizzard_api/wow/game_data/guild_crest.rb,
lib/blizzard_api/wow/game_data/tech_talent.rb,
lib/blizzard_api/wow/search/search_request.rb,
lib/blizzard_api/diablo/community/item_type.rb,
lib/blizzard_api/hearthstone/game_data/back.rb,
lib/blizzard_api/hearthstone/game_data/card.rb,
lib/blizzard_api/hearthstone/game_data/deck.rb,
lib/blizzard_api/starcraft/community/ladder.rb,
lib/blizzard_api/starcraft/community/legacy.rb,
lib/blizzard_api/starcraft/game_data/league.rb,
lib/blizzard_api/wow/search/search_composer.rb,
lib/blizzard_api/starcraft/community/account.rb,
lib/blizzard_api/starcraft/community/profile.rb,
lib/blizzard_api/wow/game_data/playable_race.rb,
lib/blizzard_api/wow/profile/account_profile.rb,
lib/blizzard_api/wow/game_data/playable_class.rb,
lib/blizzard_api/wow/game_data/azerite_essence.rb,
lib/blizzard_api/wow/game_data/connected_realm.rb,
lib/blizzard_api/wow/game_data/item_appearance.rb,
lib/blizzard_api/wow/game_data/mythic_keystone.rb,
lib/blizzard_api/wow/profile/character_profile.rb,
lib/blizzard_api/hearthstone/game_data/metadata.rb,
lib/blizzard_api/wow/game_data/modified_crafting.rb,
lib/blizzard_api/diablo/community/character_class.rb,
lib/blizzard_api/wow/game_data/generic_data_endpoint.rb,
lib/blizzard_api/wow/game_data/mythic_keystone_affix.rb,
lib/blizzard_api/wow/game_data/mythic_raid_leaderboard.rb,
lib/blizzard_api/wow/game_data/playable_specialization.rb,
lib/blizzard_api/diablo/game_data/generic_data_endpoint.rb,
lib/blizzard_api/wow/game_data/mythic_keystone_leaderboard.rb,
lib/blizzard_api/hearthstone/game_data/generic_data_endpoint.rb

Overview

Note:

This gem do not support nor will support China endpoints

Defined Under Namespace

Modules: ApiStandards, Configuration, Diablo, Hearthstone, Starcraft, TokenManager, Wow Classes: ApiException, ApiResponse, Request

Constant Summary collapse

VERSION =

Gem version

'4.2.0'

Constants included from TokenManager

TokenManager::REDIS_TOKEN_KEY

Instance Attribute Summary

Attributes included from TokenManager

#access_token, #expires_at

Attributes included from Configuration

#app_id, #app_secret, #cache_access_token, #mode, #redis_url, #region

Class Method Summary collapse

Methods included from TokenManager

access_token_expired?, restore_access_token, save_access_token

Methods included from Configuration

configure, extended, use_cache?

Class Method Details

.redis_connectionObject



20
21
22
23
24
# File 'lib/blizzard_api.rb', line 20

def self.redis_connection
  return nil unless use_cache?

  @redis_connection ||= Redis.new(url: BlizzardApi.redis_url)
end