Class: BlizzardApi::Wow::Spell
- Inherits:
-
GenericDataEndpoint
- Object
- Request
- Request
- GenericDataEndpoint
- BlizzardApi::Wow::Spell
- Includes:
- Searchable
- Defined in:
- lib/blizzard_api/wow/game_data/spell.rb
Overview
This class allows access to World of Warcraft spell data
You can get an instance of this class using the default region as follows:
api_instance = BlizzardApi::Wow.spell
Constant Summary
Constants inherited from Request
Request::CACHE_DAY, Request::CACHE_HOUR, Request::CACHE_TRIMESTER
Constants included from ApiStandards
Instance Attribute Summary
Attributes inherited from Request
Instance Method Summary collapse
-
#display_media(id, **options) ⇒ Hash
Fetch media for a spell.
-
#index ⇒ Hash
This method overrides the inherited default behavior to prevent high server load and fetch time.
Methods included from Searchable
Methods inherited from GenericDataEndpoint
Methods inherited from Request
Methods inherited from Request
Constructor Details
This class inherits a constructor from BlizzardApi::Wow::Request
Instance Method Details
#display_media(id, **options) ⇒ Hash
Fetch media for a spell
in the configuration module
33 34 35 |
# File 'lib/blizzard_api/wow/game_data/spell.rb', line 33 def display_media(id, **) api_request "#{base_url(:media)}/spell/#{id}", **.merge() end |
#index ⇒ Hash
This method overrides the inherited default behavior to prevent high server load and fetch time
in the configuration module
21 22 23 |
# File 'lib/blizzard_api/wow/game_data/spell.rb', line 21 def index raise BlizzardApi::ApiException, 'This endpoint does not have an index method' end |