Class: Halo::Halo5::Stats
- Inherits:
-
APIResponse
- Object
- APIResponse
- Halo::Halo5::Stats
- Defined in:
- lib/halo-api/modules/halo5/stats.rb
Instance Attribute Summary
Attributes inherited from APIResponse
Instance Method Summary collapse
- #company(company_id, options = {}) ⇒ Object
- #company_commendations(company_id, options = {}) ⇒ Object
-
#initialize(options = {}) ⇒ Stats
constructor
A new instance of Stats.
- #leaderboard_player_csr(season_id, playlist_id, options = {}) ⇒ Object
- #match_events(match_id, options = {}) ⇒ Object
- #match_result_arena(match_id, options = {}) ⇒ Object
- #match_result_campaign(match_id, options = {}) ⇒ Object
- #match_result_custom(match_id, options = {}) ⇒ Object
- #match_result_warzone(match_id, options = {}) ⇒ Object
- #pc_match_result_custom(match_id, options = {}) ⇒ Object
- #pc_player_match_history(player, options = {}) ⇒ Object
- #pc_psr_custom(players, options = {}) ⇒ Object
- #player_commendations(player, options = {}) ⇒ Object
- #player_match_history(player, options = {}) ⇒ Object
- #psr_arena(players, options = {}) ⇒ Object
- #psr_campaign(players, options = {}) ⇒ Object
- #psr_custom(players, options = {}) ⇒ Object
- #psr_warzone(players, options = {}) ⇒ Object
Methods inherited from APIResponse
Constructor Details
#initialize(options = {}) ⇒ Stats
Returns a new instance of Stats.
5 6 7 8 |
# File 'lib/halo-api/modules/halo5/stats.rb', line 5 def initialize( = {}) @endpoint = '/stats/h5' super() end |
Instance Method Details
#company(company_id, options = {}) ⇒ Object
10 11 12 |
# File 'lib/halo-api/modules/halo5/stats.rb', line 10 def company(company_id, = {}) get_data("#{@endpoint}/companies/#{company_id}", ) end |
#company_commendations(company_id, options = {}) ⇒ Object
14 15 16 |
# File 'lib/halo-api/modules/halo5/stats.rb', line 14 def company_commendations(company_id, = {}) get_data("#{@endpoint}/companies/#{company_id}/commendations", ) end |
#leaderboard_player_csr(season_id, playlist_id, options = {}) ⇒ Object
18 19 20 |
# File 'lib/halo-api/modules/halo5/stats.rb', line 18 def leaderboard_player_csr(season_id, playlist_id, = {}) get_data("#{@endpoint}/player-leaderboards/csr/#{season_id}/#{playlist_id}", ) end |
#match_events(match_id, options = {}) ⇒ Object
22 23 24 |
# File 'lib/halo-api/modules/halo5/stats.rb', line 22 def match_events(match_id, = {}) get_data("#{@endpoint}/matches/#{match_id}/events", ) end |
#match_result_arena(match_id, options = {}) ⇒ Object
26 27 28 |
# File 'lib/halo-api/modules/halo5/stats.rb', line 26 def match_result_arena(match_id, = {}) get_data("#{@endpoint}/arena/matches/#{match_id}", ) end |
#match_result_campaign(match_id, options = {}) ⇒ Object
30 31 32 |
# File 'lib/halo-api/modules/halo5/stats.rb', line 30 def match_result_campaign(match_id, = {}) get_data("#{@endpoint}/campaign/matches/#{match_id}", ) end |
#match_result_custom(match_id, options = {}) ⇒ Object
34 35 36 |
# File 'lib/halo-api/modules/halo5/stats.rb', line 34 def match_result_custom(match_id, = {}) get_data("#{@endpoint}/custom/matches/#{match_id}", ) end |
#match_result_warzone(match_id, options = {}) ⇒ Object
38 39 40 |
# File 'lib/halo-api/modules/halo5/stats.rb', line 38 def match_result_warzone(match_id, = {}) get_data("#{@endpoint}/warzone/matches/#{match_id}", ) end |
#pc_match_result_custom(match_id, options = {}) ⇒ Object
66 67 68 |
# File 'lib/halo-api/modules/halo5/stats.rb', line 66 def pc_match_result_custom(match_id, = {}) get_data("#{@endpoint}pc/custom/matches/#{match_id}", ) end |
#pc_player_match_history(player, options = {}) ⇒ Object
70 71 72 |
# File 'lib/halo-api/modules/halo5/stats.rb', line 70 def pc_player_match_history(player, = {}) get_data("#{@endpoint}pc/players/#{player}/matches", ) end |
#pc_psr_custom(players, options = {}) ⇒ Object
74 75 76 |
# File 'lib/halo-api/modules/halo5/stats.rb', line 74 def pc_psr_custom(players, = {}) get_data("#{@endpoint}pc/servicerecords/custom", .merge(players: players)) end |
#player_commendations(player, options = {}) ⇒ Object
42 43 44 |
# File 'lib/halo-api/modules/halo5/stats.rb', line 42 def player_commendations(player, = {}) get_data("#{@endpoint}/players/#{player}/commendations", ) end |
#player_match_history(player, options = {}) ⇒ Object
46 47 48 |
# File 'lib/halo-api/modules/halo5/stats.rb', line 46 def player_match_history(player, = {}) get_data("#{@endpoint}/players/#{player}/matches", ) end |
#psr_arena(players, options = {}) ⇒ Object
50 51 52 |
# File 'lib/halo-api/modules/halo5/stats.rb', line 50 def psr_arena(players, = {}) get_data("#{@endpoint}/servicerecords/arena", .merge(players: players)) end |
#psr_campaign(players, options = {}) ⇒ Object
54 55 56 |
# File 'lib/halo-api/modules/halo5/stats.rb', line 54 def psr_campaign(players, = {}) get_data("#{@endpoint}/servicerecords/campaign", .merge(players: players)) end |
#psr_custom(players, options = {}) ⇒ Object
58 59 60 |
# File 'lib/halo-api/modules/halo5/stats.rb', line 58 def psr_custom(players, = {}) get_data("#{@endpoint}/servicerecords/custom", .merge(players: players)) end |
#psr_warzone(players, options = {}) ⇒ Object
62 63 64 |
# File 'lib/halo-api/modules/halo5/stats.rb', line 62 def psr_warzone(players, = {}) get_data("#{@endpoint}/servicerecords/warzone", .merge(players: players)) end |