Module: BlizzardApi::Starcraft

Defined in:
lib/blizzard_api_rb/starcraft.rb,
lib/blizzard_api_rb/starcraft/request.rb,
lib/blizzard_api_rb/starcraft/community/ladder.rb,
lib/blizzard_api_rb/starcraft/community/legacy.rb,
lib/blizzard_api_rb/starcraft/game_data/league.rb,
lib/blizzard_api_rb/starcraft/community/account.rb,
lib/blizzard_api_rb/starcraft/community/profile.rb

Overview

Starcraft II related classes

Defined Under Namespace

Classes: Account, Ladder, League, Legacy, Profile, Request

Class Method Summary collapse

Class Method Details

.account(**options) ⇒ Account

Parameters:

  • options (Hash)

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

Returns:



47
48
49
# File 'lib/blizzard_api_rb/starcraft.rb', line 47

def self.(**options)
  BlizzardApi::Starcraft::Account.new(**options)
end

.ladder(**options) ⇒ Ladder

Parameters:

  • options (Hash)

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

Returns:



40
41
42
# File 'lib/blizzard_api_rb/starcraft.rb', line 40

def self.ladder(**options)
  BlizzardApi::Starcraft::Ladder.new(**options)
end

.league(**options) ⇒ League

Parameters:

  • options (Hash)

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

Returns:



20
21
22
# File 'lib/blizzard_api_rb/starcraft.rb', line 20

def self.league(**options)
  BlizzardApi::Starcraft::League.new(**options)
end

.legacy(**options) ⇒ Legacy

Returns:



53
54
55
# File 'lib/blizzard_api_rb/starcraft.rb', line 53

def self.legacy(**options)
  BlizzardApi::Starcraft::Legacy.new(**options)
end

.profile(**options) ⇒ Profile

Parameters:

  • options (Hash)

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

Returns:



33
34
35
# File 'lib/blizzard_api_rb/starcraft.rb', line 33

def self.profile(**options)
  BlizzardApi::Starcraft::Profile.new(**options)
end