class Halo::HaloWars2::Stats
Public Class Methods
new(options = {})
click to toggle source
Calls superclass method
Halo::APIResponse::new
# File lib/halo-api/modules/halo_wars2/stats.rb, line 6 def initialize(options = {}) @endpoint = '/stats/hw2' super(options) end
Public Instance Methods
leaderboard_player_csr(season_id, playlist_id, options = {})
click to toggle source
# File lib/halo-api/modules/halo_wars2/stats.rb, line 12 def leaderboard_player_csr(season_id, playlist_id, options = {}) get_data("#{@endpoint}/player-leaderboards/csr/#{season_id}/#{playlist_id}", options) end
match_events(match_id, options = {})
click to toggle source
# File lib/halo-api/modules/halo_wars2/stats.rb, line 16 def match_events(match_id, options = {}) get_data("#{@endpoint}/matches/#{match_id}/events", options) end
match_result(match_id, options = {})
click to toggle source
# File lib/halo-api/modules/halo_wars2/stats.rb, line 20 def match_result(match_id, options = {}) get_data("#{@endpoint}/matches/#{match_id}", options) end
player_campaign_progress(player, options = {})
click to toggle source
# File lib/halo-api/modules/halo_wars2/stats.rb, line 24 def player_campaign_progress(player, options = {}) get_data("#{@endpoint}/players/#{player}/campaign-progress", options) end
player_match_history(player, options = {})
click to toggle source
# File lib/halo-api/modules/halo_wars2/stats.rb, line 28 def player_match_history(player, options = {}) get_data("#{@endpoint}/players/#{player}/matches", options) end
player_playlist_ratings(playlist_id, players, options = {})
click to toggle source
# File lib/halo-api/modules/halo_wars2/stats.rb, line 32 def player_playlist_ratings(playlist_id, players, options = {}) get_data("#{@endpoint}/playlist/#{playlist_id}/rating", options.merge(players: players)) end
player_season_stats_summary(player, season_id, options = {})
click to toggle source
# File lib/halo-api/modules/halo_wars2/stats.rb, line 36 def player_season_stats_summary(player, season_id, options = {}) get_data("#{@endpoint}/players/#{player}/stats/seasons/#{season_id}", options) end
player_stats_summary(player, options = {})
click to toggle source
# File lib/halo-api/modules/halo_wars2/stats.rb, line 40 def player_stats_summary(player, options = {}) get_data("#{@endpoint}/players/#{player}/stats", options) end
player_xp(players, options = {})
click to toggle source
# File lib/halo-api/modules/halo_wars2/stats.rb, line 44 def player_xp(players, options = {}) get_data("#{@endpoint}/xp", options.merge(players: players)) end