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
- #achievements(options = {}) ⇒ Object
- #ladder(id, options = {}) ⇒ Object
- #profile(id, region, name, options = {}) ⇒ Object
- #profile_ladders(id, region, name, options = {}) ⇒ Object
- #profile_match_history(id, region, name, options = {}) ⇒ Object
- #rewards(options = {}) ⇒ Object
Instance Method Details
#achievements(options = {}) ⇒ Object
5 6 7 |
# File 'lib/battlenet/modules/sc2/data.rb', line 5 def achievements( = {}) get "/data/achievements", end |
#ladder(id, options = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/battlenet/modules/sc2/ladder.rb', line 5 def ladder(id, = {}) id = URI.escape id get "/ladder/#{id}", 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, = {}) id = URI.escape id region = URI.escape region name = URI.escape name get "/profile/#{id}/#{region}/#{name}", 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, = {}) id = URI.escape id region = URI.escape region name = URI.escape name get "/profile/#{id}/#{region}/#{name}/ladders", 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, = {}) id = URI.escape id region = URI.escape region name = URI.escape name get "/profile/#{id}/#{region}/#{name}/matches", end |
#rewards(options = {}) ⇒ Object
9 10 11 |
# File 'lib/battlenet/modules/sc2/data.rb', line 9 def rewards( = {}) get "/data/rewards", end |