class NbaRb::Game::Hustle
Attributes
game_id[RW]
Public Class Methods
new(*args)
click to toggle source
Calls superclass method
Initializable::new
# File lib/nba_rb/game/hustle.rb, line 8 def initialize(*args) super(*args) res = stats_request(endpoint, 'GameID' => game_id) @data = res['resultSets'] end
Public Instance Methods
hustle_stats_available()
click to toggle source
# File lib/nba_rb/game/hustle.rb, line 16 def hustle_stats_available create_stats_hash(@data[0]) end
hustle_stats_player_box_score()
click to toggle source
# File lib/nba_rb/game/hustle.rb, line 20 def hustle_stats_player_box_score create_stats_hash(@data[1]) end
hustle_stats_team_box_score()
click to toggle source
# File lib/nba_rb/game/hustle.rb, line 24 def hustle_stats_team_box_score create_stats_hash(@data[2]) end