Class: BlizzardApi::Wow::Quest
- Inherits:
-
GenericDataEndpoint
- Object
- Request
- Request
- GenericDataEndpoint
- BlizzardApi::Wow::Quest
- Defined in:
- lib/blizzard_api_rb/wow/game_data/quest.rb
Overview
This class allows access to World of Warcraft quest data
You can get an instance of this class using the default region as follows:
api_instance = BlizzardApi::Wow.quest
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
-
#area(id, **options) ⇒ Hash
Return data about a quest area.
-
#areas(**options) ⇒ Hash
Return a list of quest areas.
-
#categories(**options) ⇒ Hash
Return a list of quest categories.
-
#category(id, **options) ⇒ Hash
Return data about a quest category.
-
#type(id, **options) ⇒ Hash
Return data about a quest type.
-
#types(**options) ⇒ Hash
Return a list of quest types.
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
#area(id, **options) ⇒ Hash
Return data about a quest area
in the configuration module
53 54 55 |
# File 'lib/blizzard_api_rb/wow/game_data/quest.rb', line 53 def area(id, **) api_request "#{endpoint_uri}/area/#{id}", **.merge() end |
#areas(**options) ⇒ Hash
Return a list of quest areas
in the configuration module
42 43 44 |
# File 'lib/blizzard_api_rb/wow/game_data/quest.rb', line 42 def areas(**) api_request "#{endpoint_uri}/area/index", **.merge() end |
#categories(**options) ⇒ Hash
Return a list of quest categories
in the configuration module
21 22 23 |
# File 'lib/blizzard_api_rb/wow/game_data/quest.rb', line 21 def categories(**) api_request "#{endpoint_uri}/category/index", **.merge() end |
#category(id, **options) ⇒ Hash
Return data about a quest category
in the configuration module
32 33 34 |
# File 'lib/blizzard_api_rb/wow/game_data/quest.rb', line 32 def category(id, **) api_request "#{endpoint_uri}/category/#{id}", **.merge() end |
#type(id, **options) ⇒ Hash
Return data about a quest type
in the configuration module
74 75 76 |
# File 'lib/blizzard_api_rb/wow/game_data/quest.rb', line 74 def type(id, **) api_request "#{endpoint_uri}/type/#{id}", **.merge() end |
#types(**options) ⇒ Hash
Return a list of quest types
in the configuration module
63 64 65 |
# File 'lib/blizzard_api_rb/wow/game_data/quest.rb', line 63 def types(**) api_request "#{endpoint_uri}/type/index", **.merge() end |