Class: BlizzardApi::Wow::Covenant
- Inherits:
-
GenericDataEndpoint
- Object
- Request
- Request
- GenericDataEndpoint
- BlizzardApi::Wow::Covenant
- Defined in:
- lib/blizzard_api/wow/game_data/covenant.rb
Overview
This class allows access to World of Warcraft azerite essences
You can get an instance of this class using the default region as follows:
api_instance = BlizzardApi::Wow.azerite_essence
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
-
#conduit(id, **options) ⇒ Hash
Fetch a conduit by its id.
-
#conduits(**options) ⇒ Hash
Fetch all conduits.
-
#media(id, **options) ⇒ Hash
Fetch media for one of the covenants listed by the GenericDataEndpoint#index using its id.
-
#soulbind(id, **options) ⇒ Hash
Fetch a soulbind by its id.
-
#soulbinds(**options) ⇒ Hash
Fetch all soulbinds.
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
#conduit(id, **options) ⇒ Hash
Fetch a conduit by its id
in the configuration module
67 68 69 |
# File 'lib/blizzard_api/wow/game_data/covenant.rb', line 67 def conduit(id, **) api_request "#{base_url(:game_data)}/covenant/conduit/#{id}", **.merge() end |
#conduits(**options) ⇒ Hash
Fetch all conduits
in the configuration module
55 56 57 |
# File 'lib/blizzard_api/wow/game_data/covenant.rb', line 55 def conduits(**) api_request "#{base_url(:game_data)}/covenant/conduit/index", **.merge() end |
#media(id, **options) ⇒ Hash
Fetch media for one of the covenants listed by the GenericDataEndpoint#index using its id
in the configuration module
23 24 25 |
# File 'lib/blizzard_api/wow/game_data/covenant.rb', line 23 def media(id, **) api_request "#{base_url(:media)}/covenant/#{id}", **.merge() end |
#soulbind(id, **options) ⇒ Hash
Fetch a soulbind by its id
in the configuration module
45 46 47 |
# File 'lib/blizzard_api/wow/game_data/covenant.rb', line 45 def soulbind(id, **) api_request "#{base_url(:game_data)}/covenant/soulbind/#{id}", **.merge() end |
#soulbinds(**options) ⇒ Hash
Fetch all soulbinds
in the configuration module
33 34 35 |
# File 'lib/blizzard_api/wow/game_data/covenant.rb', line 33 def soulbinds(**) api_request "#{base_url(:game_data)}/covenant/soulbind/index", **.merge() end |