Class: BlizzardApi::Wow::Profession
- Inherits:
-
GenericDataEndpoint
- Object
- Request
- Request
- GenericDataEndpoint
- BlizzardApi::Wow::Profession
- Defined in:
- lib/blizzard_api_rb/wow/game_data/profession.rb
Overview
This class allows access to World of Warcraft professions
You can get an instance of this class using the default region as follows:
api_instance = BlizzardApi::Wow.profession
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 a profession using its id.
-
#recipe(id, **options) ⇒ Hash
Fetch data for a recipe using its ids.
-
#recipe_media(id, **options) ⇒ Hash
Fetch media for a recipe using its ids.
-
#skill_tier(id, tier_id, **options) ⇒ Hash
Fetch skill tier for a profession using its ids.
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 a profession using its id
in the configuration module
23 24 25 |
# File 'lib/blizzard_api_rb/wow/game_data/profession.rb', line 23 def media(id, **) api_request "#{base_url(:media)}/profession/#{id}", **.merge() end |
#recipe(id, **options) ⇒ Hash
Fetch data for a recipe using its ids
in the configuration module
48 49 50 |
# File 'lib/blizzard_api_rb/wow/game_data/profession.rb', line 48 def recipe(id, **) api_request "#{base_url(:game_data)}/recipe/#{id}", **.merge() end |
#recipe_media(id, **options) ⇒ Hash
Fetch media for a recipe using its ids
in the configuration module
60 61 62 |
# File 'lib/blizzard_api_rb/wow/game_data/profession.rb', line 60 def recipe_media(id, **) api_request "#{base_url(:media)}/recipe/#{id}", **.merge() end |
#skill_tier(id, tier_id, **options) ⇒ Hash
Fetch skill tier for a profession using its ids
in the configuration module
36 37 38 |
# File 'lib/blizzard_api_rb/wow/game_data/profession.rb', line 36 def skill_tier(id, tier_id, **) api_request "#{base_url(:game_data)}/profession/#{id}/skill-tier/#{tier_id}", **.merge() end |