Class: BlizzardApi::Wow::ModifiedCrafting
- Inherits:
-
GenericDataEndpoint
- Object
- Request
- Request
- GenericDataEndpoint
- BlizzardApi::Wow::ModifiedCrafting
- Defined in:
- lib/blizzard_api_rb/wow/game_data/modified_crafting.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.modified_crafting
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
-
#categories(**options) ⇒ Object
Fetch modified crafting category index.
-
#category(id, **options) ⇒ Hash
Fetch a modified crafting category.
- #get(_id, **_options) ⇒ Object
-
#slot_type(id, **options) ⇒ Hash
Fetch a modified crafting slot type.
-
#slot_types(**options) ⇒ Object
Fetch modified crafting slot type index.
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
#categories(**options) ⇒ Object
Fetch modified crafting category index
23 24 25 |
# File 'lib/blizzard_api_rb/wow/game_data/modified_crafting.rb', line 23 def categories(**) api_request "#{base_url(:game_data)}/modified-crafting/category/index", **.merge() end |
#category(id, **options) ⇒ Hash
Fetch a modified crafting category
in the configuration module
35 36 37 |
# File 'lib/blizzard_api_rb/wow/game_data/modified_crafting.rb', line 35 def category(id, **) api_request "#{base_url(:game_data)}/modified-crafting/category/#{id}", **.merge() end |
#get(_id, **_options) ⇒ Object
15 16 17 |
# File 'lib/blizzard_api_rb/wow/game_data/modified_crafting.rb', line 15 def get(_id, **) raise BlizzardApi::ApiException, 'This endpoint does not have a get method' end |
#slot_type(id, **options) ⇒ Hash
Fetch a modified crafting slot type
in the configuration module
55 56 57 |
# File 'lib/blizzard_api_rb/wow/game_data/modified_crafting.rb', line 55 def slot_type(id, **) api_request "#{base_url(:game_data)}/modified-crafting/reagent-slot-type/#{id}", **.merge() end |
#slot_types(**options) ⇒ Object
Fetch modified crafting slot type index
43 44 45 |
# File 'lib/blizzard_api_rb/wow/game_data/modified_crafting.rb', line 43 def slot_types(**) api_request "#{base_url(:game_data)}/modified-crafting/reagent-slot-type/index", **.merge() end |