Module: Battlenet::SC2

Included in:
SC2Client
Defined in:
lib/battlenet/modules/sc2/data.rb,
lib/battlenet/modules/sc2/ladder.rb,
lib/battlenet/modules/sc2/profile.rb

Instance Method Summary collapse

Instance Method Details

#achievements(options = {}) ⇒ Object



5
6
7
# File 'lib/battlenet/modules/sc2/data.rb', line 5

def achievements(options = {})
  get "/data/achievements", options
end

#ladder(id, options = {}) ⇒ Object



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

def ladder(id, options = {})
  id = URI.escape id

  get "/ladder/#{id}", options
end

#profile(id, region, name, options = {}) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/battlenet/modules/sc2/profile.rb', line 5

def profile(id, region, name, options = {})
  id = URI.escape id
  region = URI.escape region
  name = URI.escape name

  get "/profile/#{id}/#{region}/#{name}", options
end

#profile_ladders(id, region, name, options = {}) ⇒ Object



13
14
15
16
17
18
19
# File 'lib/battlenet/modules/sc2/profile.rb', line 13

def profile_ladders(id, region, name, options = {})
  id = URI.escape id
  region = URI.escape region
  name = URI.escape name

  get "/profile/#{id}/#{region}/#{name}/ladders", options
end

#profile_match_history(id, region, name, options = {}) ⇒ Object



21
22
23
24
25
26
27
# File 'lib/battlenet/modules/sc2/profile.rb', line 21

def profile_match_history(id, region, name, options = {})
  id = URI.escape id
  region = URI.escape region
  name = URI.escape name

  get "/profile/#{id}/#{region}/#{name}/matches", options
end

#rewards(options = {}) ⇒ Object



9
10
11
# File 'lib/battlenet/modules/sc2/data.rb', line 9

def rewards(options = {})
  get "/data/rewards", options
end