Class: BlizzardApi::Diablo::Item
- Defined in:
- lib/blizzard_api/diablo/community/item.rb
Overview
This class allows access to Diablo III item data
You can get an instance of this class using the default region as follows:
api_instance = BlizzardApi::Diablo.item
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
-
#get(item_slug_and_id, **options) ⇒ Hash
Return information about an item.
Methods inherited from Request
Methods inherited from Request
Constructor Details
This class inherits a constructor from BlizzardApi::Diablo::Request
Instance Method Details
#get(item_slug_and_id, **options) ⇒ Hash
Return information about an item
in the configuration module
20 21 22 |
# File 'lib/blizzard_api/diablo/community/item.rb', line 20 def get(item_slug_and_id, **) api_request "#{base_url(:community)}/data/item/#{item_slug_and_id}", **{ ttl: CACHE_TRIMESTER }.merge() end |