Class: BlizzardApi::Starcraft::Request

Inherits:
Request
  • Object
show all
Defined in:
lib/blizzard_api/starcraft/request.rb

Overview

Starcraft requests

Direct Known Subclasses

Account, Ladder, League, Legacy, Profile

Constant Summary collapse

SC_REGION =

Possible regions for the SC II API (Except China)

{ US: 1, EU: 2, KO: 3, TW: 3 }.freeze

Constants inherited from Request

Request::CACHE_DAY, Request::CACHE_HOUR, Request::CACHE_TRIMESTER

Constants included from ApiStandards

ApiStandards::BASE_URLS

Instance Attribute Summary

Attributes inherited from Request

#mode, #region

Instance Method Summary collapse

Constructor Details

#initialize(**options) ⇒ Request

Returns a new instance of Request.

Parameters:

  • options (Hash)

    Initialization options @option options [String] :region API region @option options [Symbol] :model API mode (:regular, :extended)



18
19
20
21
# File 'lib/blizzard_api/starcraft/request.rb', line 18

def initialize(**options)
  super(**options)
  @game = 'sc2'
end