Module: BN::Entity

Defined in:
lib/bn/entity.rb,
lib/bn/entity/base.rb,
lib/bn/entity/d3/hero.rb,
lib/bn/entity/d3/profile.rb

Overview

The Entity namespace.

Defined Under Namespace

Modules: D3 Classes: Base

Constant Summary collapse

REGIONS =

The valid regions for the API. Contains name, host, and valid locales for each region.

{
  us:  { name: "US",              uri: "https://us.api.battle.net",    locales: %w(en_US es_MX pt_BR) },
  eu:  { name: "Europe",          uri: "https://us.api.battle.net",    locales: %w(en_GB es_ES fr_FR ru_RU de_DE pt_PT it_IT) },
  kr:  { name: "Korea",           uri: "https://kr.api.battle.net",    locales: %w(ko_KR) },
  tw:  { name: "Taiwan",          uri: "https://tw.api.battle.net",    locales: %w(zh_TW) },
  cn:  { name: "China",           uri: "https://api.battlenet.com.cn", locales: %w(zh_CN) },
  sea: { name: "South East Asia", uri: "https://sea.api.battle.net",   locales: %w(en_US) }
}