Class: BlizzardApi::Hearthstone::Request

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

Overview

Hearthstone requests

Direct Known Subclasses

GenericDataEndpoint

Constant Summary

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)



9
10
11
12
# File 'lib/blizzard_api/hearthstone/request.rb', line 9

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