class Sportradar::Nfl::Models::PlayPlayerStat

Public Class Methods

new(play:, attributes:) click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 5
def initialize(play:, attributes:)
  @play = play
  @attributes = attributes
end

Public Instance Methods

blocked_field_goal_return_returns() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 477
def blocked_field_goal_return_returns
  @attributes.dig('blocked_field_goal_return', 'returns')
end
blocked_field_goal_return_touchdown() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 485
def blocked_field_goal_return_touchdown
  @attributes.dig('blocked_field_goal_return', 'td')
end
blocked_field_goal_return_yards() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 481
def blocked_field_goal_return_yards
  @attributes.dig('blocked_field_goal_return', 'yds')
end
blocked_punt_return_returns() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 489
def blocked_punt_return_returns
  @attributes.dig('blocked_punt_return', 'returns')
end
blocked_punt_return_touchdown() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 497
def blocked_punt_return_touchdown
  @attributes.dig('blocked_punt_return', 'td')
end
blocked_punt_return_yards() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 493
def blocked_punt_return_yards
  @attributes.dig('blocked_punt_return', 'yds')
end
defense_assist() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 145
def defense_assist
  @attributes.dig('defense', 'ast')
end
defense_category() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 149
def defense_category
  @attributes.dig('defense', 'category')
end
defense_forced_fumble() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 153
def defense_forced_fumble
  @attributes.dig('defense', 'fum')
end
defense_interception() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 157
def defense_interception
  @attributes.dig('defense', 'int')
end
defense_interception_touchdown() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 161
def defense_interception_touchdown
  @attributes.dig('defense', 'int_td')
end
defense_interception_yards() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 165
def defense_interception_yards
  @attributes.dig('defense', 'int_yds')
end
defense_sack() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 169
def defense_sack
  @attributes.dig('defense', 'sack')
end
defense_sack_yards() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 173
def defense_sack_yards
  @attributes.dig('defense', 'yds')
end
defense_safety() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 177
def defense_safety
  @attributes.dig('defense', 'sfty')
end
defense_tackle() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 181
def defense_tackle
  @attributes.dig('defense', 'tackle')
end
defense_tackle_lost() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 185
def defense_tackle_lost
  @attributes.dig('defense', 'tlost')
end
extra_point_attempt() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 325
def extra_point_attempt
  @attributes.dig('extra_point', 'att')
end
extra_point_blocked() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 329
def extra_point_blocked
  @attributes.dig('extra_point', 'blk')
end
extra_point_made() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 333
def extra_point_made
  @attributes.dig('extra_point', 'made')
end
field_goal_attempt() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 217
def field_goal_attempt
  @attributes.dig('field_goal', 'att')
end
field_goal_attempt_yards() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 221
def field_goal_attempt_yards
  @attributes.dig('field_goal', 'att_yds')
end
field_goal_blocked() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 225
def field_goal_blocked
  @attributes.dig('field_goal', 'blk')
end
field_goal_made() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 229
def field_goal_made
  @attributes.dig('field_goal', 'made')
end
field_goal_return() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 233
def field_goal_return
  @attributes.dig('field_goal', 'ret')
end
field_goal_return_returns() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 501
def field_goal_return_returns
  @attributes.dig('field_goal_return', 'returns')
end
field_goal_return_touchdown() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 509
def field_goal_return_touchdown
  @attributes.dig('field_goal_return', 'td')
end
field_goal_return_yards() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 505
def field_goal_return_yards
  @attributes.dig('field_goal_return', 'yds')
end
field_goal_yards() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 237
def field_goal_yards
  @attributes.dig('field_goal', 'yds')
end
fumble_category() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 413
def fumble_category
  @attributes.dig('fumble', 'category')
end
fumble_fumble() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 417
def fumble_fumble
  @attributes.dig('fumble', 'fum')
end
fumble_lost() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 421
def fumble_lost
  @attributes.dig('fumble', 'lost')
end
fumble_out_of_bounds() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 425
def fumble_out_of_bounds
  @attributes.dig('fumble', 'oob')
end
fumble_return_category() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 429
def fumble_return_category
  @attributes.dig('fumble_return', 'category')
end
fumble_return_opp_recovered() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 433
def fumble_return_opp_recovered
  @attributes.dig('fumble_return', 'opp_rec')
end
fumble_return_own_recovered() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 437
def fumble_return_own_recovered
  @attributes.dig('fumble_return', 'own_rec')
end
fumble_return_returned() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 441
def fumble_return_returned
  @attributes.dig('fumble_return', 'returns')
end
fumble_return_touchdown() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 445
def fumble_return_touchdown
  @attributes.dig('fumble_return', 'td')
end
fumble_return_yards() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 449
def fumble_return_yards
  @attributes.dig('fumble_return', 'yds')
end
jersey() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 27
def jersey
  @attributes.dig('jersey')
end
kick_return_fair_catch() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 521
def kick_return_fair_catch
  @attributes.dig('kick_return', 'fc')
end
kick_return_returns() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 513
def kick_return_returns
  @attributes.dig('kick_return', 'returns')
end
kick_return_touchdown() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 525
def kick_return_touchdown
  @attributes.dig('kick_return', 'td')
end
kick_return_yards() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 517
def kick_return_yards
  @attributes.dig('kick_return', 'yds')
end
kickoffs_endzone() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 337
def kickoffs_endzone
  @attributes.dig('kickoffs', 'endzone')
end
kickoffs_inside_20() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 341
def kickoffs_inside_20
  @attributes.dig('kickoffs', 'in20')
end
kickoffs_kicks() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 345
def kickoffs_kicks
  @attributes.dig('kickoffs', 'kicks')
end
kickoffs_net_yards() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 349
def kickoffs_net_yards
  @attributes.dig('kickoffs', 'net_yds')
end
kickoffs_returned() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 353
def kickoffs_returned
  @attributes.dig('kickoffs', 'ret')
end
kickoffs_touchback() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 357
def kickoffs_touchback
  @attributes.dig('kickoffs', 'tb')
end
kickoffs_yards() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 361
def kickoffs_yards
  @attributes.dig('kickoffs', 'yds')
end
name() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 31
def name
  @attributes.dig('name')
end
passing_attempt() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 241
def passing_attempt
  @attributes.dig('passing', 'att')
end
passing_completion() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 245
def passing_completion
  @attributes.dig('passing', 'cmp')
end
passing_first_down() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 249
def passing_first_down
  @attributes.dig('passing', 'fd')
end
passing_interception() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 253
def passing_interception
  @attributes.dig('passing', 'int')
end
passing_red_zone_attempt() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 257
def passing_red_zone_attempt
  @attributes.dig('passing', 'rz_att')
end
passing_sacked() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 265
def passing_sacked
  @attributes.dig('passing', 'sk')
end
passing_sacked_for_yards() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 269
def passing_sacked_for_yards
  @attributes.dig('passing', 'sk_yds')
end
passing_safety() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 261
def passing_safety
  @attributes.dig('passing', 'sfty')
end
passing_touchdown() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 273
def passing_touchdown
  @attributes.dig('passing', 'td')
end
passing_yards() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 277
def passing_yards
  @attributes.dig('passing', 'yds')
end
penalty_abbreviation() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 281
def penalty_abbreviation
  @attributes.dig('penalty', 'abbr')
end
penalty_first_down() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 285
def penalty_first_down
  @attributes.dig('penalty', 'fd')
end
penalty_yards() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 289
def penalty_yards
  @attributes.dig('penalty', 'yds')
end
play_id() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 19
def play_id
  @play.id
end
player_id() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 23
def player_id
  @attributes.dig('id')
end
position() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 35
def position
  @attributes.dig('position')
end
punt_return_fair_catch() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 397
def punt_return_fair_catch
  @attributes.dig('punt_return', 'fc')
end
punt_return_returns() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 401
def punt_return_returns
  @attributes.dig('punt_return', 'returns')
end
punt_return_touchdown() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 405
def punt_return_touchdown
  @attributes.dig('punt_return', 'td')
end
punt_return_yards() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 409
def punt_return_yards
  @attributes.dig('punt_return', 'yds')
end
punting_blocked() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 365
def punting_blocked
  @attributes.dig('punting', 'blk')
end
punting_inside_20() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 369
def punting_inside_20
  @attributes.dig('punting', 'in20')
end
punting_net_yards() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 373
def punting_net_yards
  @attributes.dig('punting', 'net_yds')
end
punting_punts() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 377
def punting_punts
  @attributes.dig('punting', 'punts')
end
punting_returned() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 381
def punting_returned
  @attributes.dig('punting', 'ret')
end
punting_safety() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 385
def punting_safety
  @attributes.dig('punting', 'sfty')
end
punting_touchback() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 389
def punting_touchback
  @attributes.dig('punting', 'tb')
end
punting_yards() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 393
def punting_yards
  @attributes.dig('punting', 'yds')
end
receiving_first_down() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 293
def receiving_first_down
  @attributes.dig('receiving', 'fd')
end
receiving_fumble() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 297
def receiving_fumble
  @attributes.dig('receiving', 'fum')
end
receiving_reception() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 301
def receiving_reception
  @attributes.dig('receiving', 'rec')
end
receiving_red_zone_target() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 305
def receiving_red_zone_target
  @attributes.dig('receiving', 'rz_tar')
end
receiving_target() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 309
def receiving_target
  @attributes.dig('receiving', 'tar')
end
receiving_touchdown() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 313
def receiving_touchdown
  @attributes.dig('receiving', 'td')
end
receiving_yards() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 321
def receiving_yards
  @attributes.dig('receiving', 'yds')
end
receiving_yards_after_catch() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 317
def receiving_yards_after_catch
  @attributes.dig('receiving', 'yac')
end
rushing_first_down() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 193
def rushing_first_down
  @attributes.dig('rushing', 'fd')
end
rushing_fumble() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 197
def rushing_fumble
  @attributes.dig('rushing', 'fum')
end
rushing_red_zone_attempt() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 201
def rushing_red_zone_attempt
  @attributes.dig('rushing', 'rz_att')
end
rushing_rush() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 189
def rushing_rush
  @attributes.dig('rushing', 'att')
end
rushing_safety() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 205
def rushing_safety
  @attributes.dig('rushing', 'sfty')
end
rushing_touchdown() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 209
def rushing_touchdown
  @attributes.dig('rushing', 'td')
end
rushing_yards() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 213
def rushing_yards
  @attributes.dig('rushing', 'yds')
end
stats() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 43
def stats
  {
    'blocked_field_goal_return_returns' => blocked_field_goal_return_returns,
    'blocked_field_goal_return_touchdown' => blocked_field_goal_return_touchdown,
    'blocked_field_goal_return_yards' => blocked_field_goal_return_yards,
    'blocked_punt_return_returns' => blocked_punt_return_returns,
    'blocked_punt_return_touchdown' => blocked_punt_return_touchdown,
    'blocked_punt_return_yards' => blocked_punt_return_yards,
    'defense_assist' => defense_assist,
    'defense_category' => defense_category,
    'defense_forced_fumble' => defense_forced_fumble,
    'defense_interception' => defense_interception,
    'defense_interception_touchdown' => defense_interception_touchdown,
    'defense_interception_yards' => defense_interception_yards,
    'defense_sack' => defense_sack,
    'defense_sack_yards' => defense_sack_yards,
    'defense_safety' => defense_safety,
    'defense_tackle' => defense_tackle,
    'defense_tackle_lost' => defense_tackle_lost,
    'extra_point_attempt' => extra_point_attempt,
    'extra_point_blocked' => extra_point_blocked,
    'extra_point_made' => extra_point_made,
    'field_goal_attempt' => field_goal_attempt,
    'field_goal_attempt_yards' => field_goal_attempt_yards,
    'field_goal_blocked' => field_goal_blocked,
    'field_goal_made' => field_goal_made,
    'field_goal_return' => field_goal_return,
    'field_goal_return_returns' => field_goal_return_returns,
    'field_goal_return_touchdown' => field_goal_return_touchdown,
    'field_goal_return_yards' => field_goal_return_yards,
    'field_goal_yards' => field_goal_yards,
    'fumble_category' => fumble_category,
    'fumble_fumble' => fumble_fumble,
    'fumble_lost' => fumble_lost,
    'fumble_out_of_bounds' => fumble_out_of_bounds,
    'fumble_return_category' => fumble_return_category,
    'fumble_return_opp_recovered' => fumble_return_opp_recovered,
    'fumble_return_own_recovered' => fumble_return_own_recovered,
    'fumble_return_returned' => fumble_return_returned,
    'fumble_return_touchdown' => fumble_return_touchdown,
    'fumble_return_yards' => fumble_return_yards,
    'kick_return_fair_catch' => kick_return_fair_catch,
    'kick_return_returns' => kick_return_returns,
    'kick_return_touchdown' => kick_return_touchdown,
    'kick_return_yards' => kick_return_yards,
    'kickoffs_endzone' => kickoffs_endzone,
    'kickoffs_inside_20' => kickoffs_inside_20,
    'kickoffs_kicks' => kickoffs_kicks,
    'kickoffs_net_yards' => kickoffs_net_yards,
    'kickoffs_returned' => kickoffs_returned,
    'kickoffs_touchback' => kickoffs_touchback,
    'kickoffs_yards' => kickoffs_yards,
    'passing_attempt' => passing_attempt,
    'passing_completion' => passing_completion,
    'passing_first_down' => passing_first_down,
    'passing_interception' => passing_interception,
    'passing_red_zone_attempt' => passing_red_zone_attempt,
    'passing_sacked' => passing_sacked,
    'passing_sacked_for_yards' => passing_sacked_for_yards,
    'passing_safety' => passing_safety,
    'passing_touchdown' => passing_touchdown,
    'passing_yards' => passing_yards,
    'penalty_abbreviation' => penalty_abbreviation,
    'penalty_first_down' => penalty_first_down,
    'penalty_yards' => penalty_yards,
    'punt_return_fair_catch' => punt_return_fair_catch,
    'punt_return_returned' => punt_return_returns,
    'punt_return_touchdown' => punt_return_touchdown,
    'punt_return_yards' => punt_return_yards,
    'punting_blocked' => punting_blocked,
    'punting_inside_20' => punting_inside_20,
    'punting_net_yards' => punting_net_yards,
    'punting_punts' => punting_punts,
    'punting_returned' => punting_returned,
    'punting_safety' => punting_safety,
    'punting_touchback' => punting_touchback,
    'punting_yards' => punting_yards,
    'receiving_first_down' => receiving_first_down,
    'receiving_fumble' => receiving_fumble,
    'receiving_reception' => receiving_reception,
    'receiving_red_zone_target' => receiving_red_zone_target,
    'receiving_target' => receiving_target,
    'receiving_touchdown' => receiving_touchdown,
    'receiving_yards' => receiving_yards,
    'receiving_yards_after_catch' => receiving_yards_after_catch,
    'rushing_first_down' => rushing_first_down,
    'rushing_fumble' => rushing_fumble,
    'rushing_red_zone_attempt' => rushing_red_zone_attempt,
    'rushing_rush' => rushing_rush,
    'rushing_safety' => rushing_safety,
    'rushing_touchdown' => rushing_touchdown,
    'rushing_yards' => rushing_yards,
    'two_point_conversion_attempt' => two_point_conversion_attempt,
    'two_point_conversion_failed' => two_point_conversion_failed,
    'two_point_conversion_made' => two_point_conversion_made,
    'two_point_conversion_pass' => two_point_conversion_pass,
    'two_point_conversion_rececption' => two_point_conversion_rececption,
    'two_point_conversion_rush' => two_point_conversion_rush,

  }.compact
end
team() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 39
def team
  @attributes.dig('team')
end
to_s() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 10
def to_s
  [
    team,
    name,
    position,
    stats,
  ].join(' ')
end
two_point_conversion_attempt() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 453
def two_point_conversion_attempt
  @attributes.dig('two_point_conversion', 'att')
end
two_point_conversion_failed() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 457
def two_point_conversion_failed
  @attributes.dig('two_point_conversion', 'failed')
end
two_point_conversion_made() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 461
def two_point_conversion_made
  @attributes.dig('two_point_conversion', 'made')
end
two_point_conversion_pass() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 465
def two_point_conversion_pass
  @attributes.dig('two_point_conversion', 'pass')
end
two_point_conversion_rececption() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 469
def two_point_conversion_rececption
  @attributes.dig('two_point_conversion', 'rec')
end
two_point_conversion_rush() click to toggle source
# File lib/sportradar/nfl/models/play_player_stat.rb, line 473
def two_point_conversion_rush
  @attributes.dig('two_point_conversion', 'rush')
end