Class: BlizzardApi::Wow::TechTalent
- Inherits:
-
GenericDataEndpoint
- Object
- Request
- Request
- GenericDataEndpoint
- BlizzardApi::Wow::TechTalent
- Defined in:
- lib/blizzard_api_rb/wow/game_data/tech_talent.rb
Overview
This class allows access to World of Warcraft talent data
You can get an instance of this class using the default region as follows:
api_instance = BlizzardApi::Wow.talent
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 a tech talent media.
-
#tech_talent_tree(id, **options) ⇒ Hash
Fetch a tech talent tree.
-
#tech_talent_trees(**options) ⇒ Hash
Fetch tech talent trees.
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 a tech talent media
in the configuration module
45 46 47 |
# File 'lib/blizzard_api_rb/wow/game_data/tech_talent.rb', line 45 def media(id, **) api_request "#{base_url(:media)}/tech-talent/#{id}", **.merge() end |
#tech_talent_tree(id, **options) ⇒ Hash
Fetch a tech talent tree
in the configuration module
33 34 35 |
# File 'lib/blizzard_api_rb/wow/game_data/tech_talent.rb', line 33 def tech_talent_tree(id, **) api_request "#{base_url(:game_data)}/tech-talent-tree/#{id}", **.merge() end |
#tech_talent_trees(**options) ⇒ Hash
Fetch tech talent trees
in the configuration module
21 22 23 |
# File 'lib/blizzard_api_rb/wow/game_data/tech_talent.rb', line 21 def tech_talent_trees(**) api_request "#{base_url(:game_data)}/tech-talent-tree/index", **.merge() end |