Class: BlizzardApi::Wow::PlayableClass
- Inherits:
-
GenericDataEndpoint
- Object
- Request
- Request
- GenericDataEndpoint
- BlizzardApi::Wow::PlayableClass
- Defined in:
- lib/blizzard_api_rb/wow/game_data/playable_class.rb
Overview
This class allows access to World of Warcraft playable classes
You can get an instance of this class using the default region as follows:
api_instance = BlizzardApi::Wow.playable_class
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
-
#media(id, **options) ⇒ Hash
Fetch media for one of the playable classes listed by the GenericDataEndpoint#index using its id.
-
#talent_slots(id, **options) ⇒ Hash
Returns the PvP talent slots data of a specific class.
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
#media(id, **options) ⇒ Hash
Fetch media for one of the playable classes listed by the GenericDataEndpoint#index using its id
in the configuration module
34 35 36 |
# File 'lib/blizzard_api_rb/wow/game_data/playable_class.rb', line 34 def media(id, **) api_request "#{base_url(:media)}/playable-class/#{id}", **.merge() end |
#talent_slots(id, **options) ⇒ Hash
Returns the PvP talent slots data of a specific class
in the configuration module
22 23 24 |
# File 'lib/blizzard_api_rb/wow/game_data/playable_class.rb', line 22 def talent_slots(id, **) api_request "#{endpoint_uri}/#{id}/pvp-talent-slots", **.merge() end |