Module: Battlenet::D3
- Included in:
- D3Client
- Defined in:
- lib/battlenet/modules/d3/data.rb,
lib/battlenet/modules/d3/profile.rb
Instance Method Summary collapse
- #career_profile(battletag, options = {}) ⇒ Object
- #data_artisan(artisan, options = {}) ⇒ Object
- #data_follower(follower, options = {}) ⇒ Object
- #data_item(data, options = {}) ⇒ Object
- #hero_profile(battletag, id, options = {}) ⇒ Object
Instance Method Details
#career_profile(battletag, options = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/battlenet/modules/d3/profile.rb', line 5 def career_profile(battletag, = {}) battletag = URI.escape battletag get "/profile/#{battletag}", end |
#data_artisan(artisan, options = {}) ⇒ Object
17 18 19 20 21 |
# File 'lib/battlenet/modules/d3/data.rb', line 17 def data_artisan(artisan, = {}) artisan = URI.escape artisan get "/data/artisan/#{artisan}", end |
#data_follower(follower, options = {}) ⇒ Object
11 12 13 14 15 |
# File 'lib/battlenet/modules/d3/data.rb', line 11 def data_follower(follower, = {}) follower = URI.escape follower get "/data/follower/#{follower}", end |
#data_item(data, options = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/battlenet/modules/d3/data.rb', line 5 def data_item(data, = {}) data = URI.escape data get "/data/item/#{data}", end |
#hero_profile(battletag, id, options = {}) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/battlenet/modules/d3/profile.rb', line 11 def hero_profile(battletag, id, = {}) battletag = URI.escape battletag id = URI.escape id get "/profile/#{battletag}/hero/#{id}", end |