Module: BnetApi::D3
Overview
All API methods relating to Diablo III are contained in this module.
Instance Method Summary collapse
-
#artisan_data(artisan) ⇒ Hash
Retrieves the data for the specified artisan.
-
#career_profile(battletag) ⇒ Hash
Retrieves the career profile for the user with the specified battletag.
-
#follower_data(follower) ⇒ Hash
Retrieves the data for the specified follower.
-
#hero_profile(battletag, id) ⇒ Hash
Retrieves the hero profile for the hero with the specified ID belonging to the user with the specified battletag.
-
#item_data(data) ⇒ Hash
Retrieves the data for an item with the specified item data string.
Instance Method Details
#artisan_data(artisan) ⇒ Hash
Retrieves the data for the specified artisan.
46 47 48 |
# File 'lib/bnet_api/d3.rb', line 46 def artisan_data(artisan) BnetApi.make_request("/d3/data/artisan/#{artisan}") end |
#career_profile(battletag) ⇒ Hash
Retrieves the career profile for the user with the specified battletag.
12 13 14 |
# File 'lib/bnet_api/d3.rb', line 12 def career_profile(battletag) BnetApi.make_request("/d3/profile/#{URI.encode(battletag)}/") end |
#follower_data(follower) ⇒ Hash
Retrieves the data for the specified follower.
38 39 40 |
# File 'lib/bnet_api/d3.rb', line 38 def follower_data(follower) BnetApi.make_request("/d3/data/follower/#{follower}") end |
#hero_profile(battletag, id) ⇒ Hash
Retrieves the hero profile for the hero with the specified ID belonging to the user with the specified battletag.
22 23 24 |
# File 'lib/bnet_api/d3.rb', line 22 def hero_profile(battletag, id) BnetApi.make_request("/d3/profile/#{URI.encode(battletag)}/hero/#{id}") end |
#item_data(data) ⇒ Hash
Retrieves the data for an item with the specified item data string.
30 31 32 |
# File 'lib/bnet_api/d3.rb', line 30 def item_data(data) BnetApi.make_request("/d3/data/item/#{data}") end |