Class: Sportradar::Nba::Models::ScoringPlayer

Inherits:
PlayPlayerStat show all
Defined in:
lib/sportradar/nba/models/scoring_player.rb

Instance Method Summary collapse

Methods inherited from PlayPlayerStat

#clock, #defensive_rebound?, #description, #dunk?, #event, #event_id, #free_throw?, #free_throw_type, #full_name, #hook?, #initialize, #jersey, #jump_shot?, #layup?, #made?, #offensive_rebound?, #player, #player_id, #points, #quarter, #quarter_abbreviation, #quarter_id, #quarter_number, #quarter_sequence, #quarter_type, #rebound_type, #regular_free_throw?, #shot_type, #shot_type_desc, #stat, #team, #team_id, #team_market, #team_name, #technical_free_throw?, #three_point_shot?, #tip?, #type

Constructor Details

This class inherits a constructor from Sportradar::Nba::Models::PlayPlayerStat

Instance Method Details

#roleObject



5
6
7
# File 'lib/sportradar/nba/models/scoring_player.rb', line 5

def role
  type
end

#scoring_play_idObject



9
10
11
# File 'lib/sportradar/nba/models/scoring_player.rb', line 9

def scoring_play_id
  event.id
end

#to_sObject



13
14
15
# File 'lib/sportradar/nba/models/scoring_player.rb', line 13

def to_s
  "#{super} - #{role}"
end