Module: BlizzardApi::Hearthstone

Defined in:
lib/blizzard_api/hearthstone.rb,
lib/blizzard_api/hearthstone/request.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/hearthstone/game_data/metadata.rb,
lib/blizzard_api/hearthstone/game_data/generic_data_endpoint.rb

Overview

Hearthstone related classes

Defined Under Namespace

Classes: Back, Card, Deck, GenericDataEndpoint, Metadata, Request

Class Method Summary collapse

Class Method Details

.back(**options) ⇒ Back

Parameters:

  • options (Hash)

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

Returns:



31
32
33
# File 'lib/blizzard_api/hearthstone.rb', line 31

def self.back(**options)
  BlizzardApi::Hearthstone::Back.new(**options)
end

.card(**options) ⇒ Card

Parameters:

  • options (Hash)

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

Returns:



24
25
26
# File 'lib/blizzard_api/hearthstone.rb', line 24

def self.card(**options)
  BlizzardApi::Hearthstone::Card.new(**options)
end

.deck(**options) ⇒ Deck

Parameters:

  • options (Hash)

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

Returns:



38
39
40
# File 'lib/blizzard_api/hearthstone.rb', line 38

def self.deck(**options)
  BlizzardApi::Hearthstone::Deck.new(**options)
end

.metadata(**options) ⇒ Metadata

Parameters:

  • options (Hash)

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

Returns:



45
46
47
# File 'lib/blizzard_api/hearthstone.rb', line 45

def self.(**options)
  BlizzardApi::Hearthstone::Metadata.new(**options)
end