Module: D3api::Configuration

Defined in:
lib/d3api/configuration.rb

Constant Summary collapse

REGIONAL_BASE_URL =
{
  :us => 'https://us.battle.net/api/d3/',
  :eu => 'https://eu.battle.net/api/d3/',
  :kr => 'https://kr.battle.net/api/d3/',
  :tw => 'https://tw.battle.net/api/d3/',
  :ch => 'https://www.battlenet.com.cn/api/d3/'
}
DEFAULT_ENDPOINT =
REGIONAL_BASE_URL[:us]

Class Method Summary collapse

Class Method Details

.default_endpointObject



17
18
19
# File 'lib/d3api/configuration.rb', line 17

def self.default_endpoint
  DEFAULT_ENDPOINT
end

.regional_urlsObject



13
14
15
# File 'lib/d3api/configuration.rb', line 13

def self.regional_urls
  REGIONAL_BASE_URL
end