Class: BlizzardApi::Wow::Talent
- Inherits:
-
GenericDataEndpoint
- Object
- Request
- Request
- GenericDataEndpoint
- BlizzardApi::Wow::Talent
- Defined in:
- lib/blizzard_api/wow/game_data/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
-
#pvp_talent(id, **options) ⇒ Hash
Fetch a pvp talent.
-
#pvp_talents(**options) ⇒ Hash
Fetch pvp talents.
-
#talent_tree(talent_tree_id, spec_id, **options) ⇒ Hash
Fetch a talent tree.
-
#talent_tree_nodes(talent_tree_id, **options) ⇒ Hash
Fetch a talent tree node.
-
#talent_trees(**options) ⇒ Hash
Fetch 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
#pvp_talent(id, **options) ⇒ Hash
Fetch a pvp talent
in the configuration module
70 71 72 |
# File 'lib/blizzard_api/wow/game_data/talent.rb', line 70 def pvp_talent(id, **) api_request "#{base_url(:game_data)}/pvp-talent/#{id}", **.merge() end |
#pvp_talents(**options) ⇒ Hash
Fetch pvp talents
in the configuration module
58 59 60 |
# File 'lib/blizzard_api/wow/game_data/talent.rb', line 58 def pvp_talents(**) api_request "#{base_url(:game_data)}/pvp-talent/index", **.merge() end |
#talent_tree(talent_tree_id, spec_id, **options) ⇒ Hash
Fetch a talent tree
in the configuration module
35 36 37 38 |
# File 'lib/blizzard_api/wow/game_data/talent.rb', line 35 def talent_tree(talent_tree_id, spec_id, **) api_request "#{base_url(:game_data)}/talent-tree/#{talent_tree_id}/playable-specialization/#{spec_id}", **.merge() end |
#talent_tree_nodes(talent_tree_id, **options) ⇒ Hash
Fetch a talent tree node
in the configuration module
48 49 50 |
# File 'lib/blizzard_api/wow/game_data/talent.rb', line 48 def talent_tree_nodes(talent_tree_id, **) api_request "#{base_url(:game_data)}/talent-tree/#{talent_tree_id}", **.merge() end |
#talent_trees(**options) ⇒ Hash
Fetch talent trees
in the configuration module
21 22 23 |
# File 'lib/blizzard_api/wow/game_data/talent.rb', line 21 def talent_trees(**) api_request "#{base_url(:game_data)}/talent-tree/index", **.merge() end |