Class: NbaRb::Game::BoxscoreUsage

Inherits:
Boxscore show all
Defined in:
lib/nba_rb/game/boxscore_usage.rb

Instance Attribute Summary

Attributes inherited from Boxscore

#data, #end_period, #end_range, #game_id, #range_type, #start_period, #start_range

Instance Method Summary collapse

Methods inherited from Boxscore

#initialize, #player_stats, #team_starter_bench_stats, #team_stats

Methods included from StatsRequest

#stats_request

Methods included from Initializable

#initialize

Methods included from StatsHash

#create_stats_hash

Constructor Details

This class inherits a constructor from NbaRb::Game::Boxscore

Instance Method Details

#endpointObject



6
7
8
# File 'lib/nba_rb/game/boxscore_usage.rb', line 6

def endpoint
  self.class.endpoint
end

#players_usageObject



10
11
12
# File 'lib/nba_rb/game/boxscore_usage.rb', line 10

def players_usage
  create_stats_hash(@data[0])
end

#team_usageObject



14
15
16
# File 'lib/nba_rb/game/boxscore_usage.rb', line 14

def team_usage
  create_stats_hash(@data[1])
end