Class: BlizzardApi::Wow::ItemAppearance
- Inherits:
-
GenericDataEndpoint
- Object
- Request
- Request
- GenericDataEndpoint
- BlizzardApi::Wow::ItemAppearance
- Includes:
- Searchable
- Defined in:
- lib/blizzard_api/wow/game_data/item_appearance.rb
Overview
This class allows access to World of Warcraft item data
You can get an instance of this class using the default region as follows:
api_instance = BlizzardApi::Wow.item_appearance
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
-
#index ⇒ Hash
This method overrides the inherited default behavior to prevent high server load and fetch time.
-
#set(id, **options) ⇒ Hash
Return data about an item appearance set.
-
#sets(**options) ⇒ Hash
Return a list of item appearance sets.
-
#slot(type, **options) ⇒ Hash
Return data about an item appearance slot.
-
#slots(**options) ⇒ Hash
Return a list of item appearance slots.
Methods included from Searchable
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
#index ⇒ Hash
This method overrides the inherited default behavior to prevent high server load and fetch time
in the configuration module
21 22 23 |
# File 'lib/blizzard_api/wow/game_data/item_appearance.rb', line 21 def index raise BlizzardApi::ApiException, 'This endpoint does not have an index method' end |
#set(id, **options) ⇒ Hash
Return data about an item appearance set
in the configuration module
42 43 44 |
# File 'lib/blizzard_api/wow/game_data/item_appearance.rb', line 42 def set(id, **) api_request "#{endpoint_uri}/set/#{id}", **.merge() end |
#sets(**options) ⇒ Hash
Return a list of item appearance sets
in the configuration module
31 32 33 |
# File 'lib/blizzard_api/wow/game_data/item_appearance.rb', line 31 def sets(**) api_request "#{endpoint_uri}/set/index", **.merge() end |
#slot(type, **options) ⇒ Hash
Return data about an item appearance slot
in the configuration module
63 64 65 |
# File 'lib/blizzard_api/wow/game_data/item_appearance.rb', line 63 def slot(type, **) api_request "#{endpoint_uri}/slot/#{type}", **.merge() end |
#slots(**options) ⇒ Hash
Return a list of item appearance slots
in the configuration module
52 53 54 |
# File 'lib/blizzard_api/wow/game_data/item_appearance.rb', line 52 def slots(**) api_request "#{endpoint_uri}/slot/index", **.merge() end |