Module: Battlenet::D3

Included in:
D3Client
Defined in:
lib/battlenet/modules/d3/data.rb,
lib/battlenet/modules/d3/profile.rb

Instance Method Summary collapse

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, options = {})
  battletag = URI.escape battletag

  get "/profile/#{battletag}", options
end

#data_artisan(artisan, options = {}) ⇒ Object



17
18
19
20
21
# File 'lib/battlenet/modules/d3/data.rb', line 17

def data_artisan(artisan, options = {})
  artisan = URI.escape artisan

  get "/data/artisan/#{artisan}", options
end

#data_follower(follower, options = {}) ⇒ Object



11
12
13
14
15
# File 'lib/battlenet/modules/d3/data.rb', line 11

def data_follower(follower, options = {})
  follower = URI.escape follower

  get "/data/follower/#{follower}", options
end

#data_item(data, options = {}) ⇒ Object



5
6
7
8
9
# File 'lib/battlenet/modules/d3/data.rb', line 5

def data_item(data, options = {})
  data = URI.escape data

  get "/data/item/#{data}", options
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, options = {})
  battletag = URI.escape battletag
  id = URI.escape id

  get "/profile/#{battletag}/hero/#{id}", options
end