Class: Sportradar::Nfl::Models::PlayPlayerStat
- Inherits:
-
Object
- Object
- Sportradar::Nfl::Models::PlayPlayerStat
- Defined in:
- lib/sportradar/nfl/models/play_player_stat.rb
Instance Method Summary collapse
- #blocked_field_goal_return_returns ⇒ Object
- #blocked_field_goal_return_touchdown ⇒ Object
- #blocked_field_goal_return_yards ⇒ Object
- #blocked_punt_return_returns ⇒ Object
- #blocked_punt_return_touchdown ⇒ Object
- #blocked_punt_return_yards ⇒ Object
- #defense_assist ⇒ Object
- #defense_category ⇒ Object
- #defense_forced_fumble ⇒ Object
- #defense_interception ⇒ Object
- #defense_interception_touchdown ⇒ Object
- #defense_interception_yards ⇒ Object
- #defense_sack ⇒ Object
- #defense_sack_yards ⇒ Object
- #defense_safety ⇒ Object
- #defense_tackle ⇒ Object
- #defense_tackle_lost ⇒ Object
- #extra_point_attempt ⇒ Object
- #extra_point_blocked ⇒ Object
- #extra_point_made ⇒ Object
- #field_goal_attempt ⇒ Object
- #field_goal_attempt_yards ⇒ Object
- #field_goal_blocked ⇒ Object
- #field_goal_made ⇒ Object
- #field_goal_return ⇒ Object
- #field_goal_return_returns ⇒ Object
- #field_goal_return_touchdown ⇒ Object
- #field_goal_return_yards ⇒ Object
- #field_goal_yards ⇒ Object
- #fumble_category ⇒ Object
- #fumble_fumble ⇒ Object
- #fumble_lost ⇒ Object
- #fumble_out_of_bounds ⇒ Object
- #fumble_return_category ⇒ Object
- #fumble_return_opp_recovered ⇒ Object
- #fumble_return_own_recovered ⇒ Object
- #fumble_return_returned ⇒ Object
- #fumble_return_touchdown ⇒ Object
- #fumble_return_yards ⇒ Object
-
#initialize(play:, attributes:) ⇒ PlayPlayerStat
constructor
A new instance of PlayPlayerStat.
- #jersey ⇒ Object
- #kick_return_fair_catch ⇒ Object
- #kick_return_returns ⇒ Object
- #kick_return_touchdown ⇒ Object
- #kick_return_yards ⇒ Object
- #kickoffs_endzone ⇒ Object
- #kickoffs_inside_20 ⇒ Object
- #kickoffs_kicks ⇒ Object
- #kickoffs_net_yards ⇒ Object
- #kickoffs_returned ⇒ Object
- #kickoffs_touchback ⇒ Object
- #kickoffs_yards ⇒ Object
- #name ⇒ Object
- #passing_attempt ⇒ Object
- #passing_completion ⇒ Object
- #passing_first_down ⇒ Object
- #passing_interception ⇒ Object
- #passing_red_zone_attempt ⇒ Object
- #passing_sacked ⇒ Object
- #passing_sacked_for_yards ⇒ Object
- #passing_safety ⇒ Object
- #passing_touchdown ⇒ Object
- #passing_yards ⇒ Object
- #penalty_abbreviation ⇒ Object
- #penalty_first_down ⇒ Object
- #penalty_yards ⇒ Object
- #play_id ⇒ Object
- #player_id ⇒ Object
- #position ⇒ Object
- #punt_return_fair_catch ⇒ Object
- #punt_return_returns ⇒ Object
- #punt_return_touchdown ⇒ Object
- #punt_return_yards ⇒ Object
- #punting_blocked ⇒ Object
- #punting_inside_20 ⇒ Object
- #punting_net_yards ⇒ Object
- #punting_punts ⇒ Object
- #punting_returned ⇒ Object
- #punting_safety ⇒ Object
- #punting_touchback ⇒ Object
- #punting_yards ⇒ Object
- #receiving_first_down ⇒ Object
- #receiving_fumble ⇒ Object
- #receiving_reception ⇒ Object
- #receiving_red_zone_target ⇒ Object
- #receiving_target ⇒ Object
- #receiving_touchdown ⇒ Object
- #receiving_yards ⇒ Object
- #receiving_yards_after_catch ⇒ Object
- #rushing_first_down ⇒ Object
- #rushing_fumble ⇒ Object
- #rushing_red_zone_attempt ⇒ Object
- #rushing_rush ⇒ Object
- #rushing_safety ⇒ Object
- #rushing_touchdown ⇒ Object
- #rushing_yards ⇒ Object
- #stats ⇒ Object
- #team ⇒ Object
- #to_s ⇒ Object
- #two_point_conversion_attempt ⇒ Object
- #two_point_conversion_failed ⇒ Object
- #two_point_conversion_made ⇒ Object
- #two_point_conversion_pass ⇒ Object
- #two_point_conversion_rececption ⇒ Object
- #two_point_conversion_rush ⇒ Object
Constructor Details
#initialize(play:, attributes:) ⇒ PlayPlayerStat
Returns a new instance of PlayPlayerStat.
5 6 7 8 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 5 def initialize(play:, attributes:) @play = play @attributes = attributes end |
Instance Method Details
#blocked_field_goal_return_returns ⇒ Object
477 478 479 |
# 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 ⇒ Object
485 486 487 |
# 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 ⇒ Object
481 482 483 |
# 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 ⇒ Object
489 490 491 |
# 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 ⇒ Object
497 498 499 |
# 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 ⇒ Object
493 494 495 |
# 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 ⇒ Object
145 146 147 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 145 def defense_assist @attributes.dig('defense', 'ast') end |
#defense_category ⇒ Object
149 150 151 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 149 def defense_category @attributes.dig('defense', 'category') end |
#defense_forced_fumble ⇒ Object
153 154 155 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 153 def defense_forced_fumble @attributes.dig('defense', 'fum') end |
#defense_interception ⇒ Object
157 158 159 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 157 def defense_interception @attributes.dig('defense', 'int') end |
#defense_interception_touchdown ⇒ Object
161 162 163 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 161 def defense_interception_touchdown @attributes.dig('defense', 'int_td') end |
#defense_interception_yards ⇒ Object
165 166 167 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 165 def defense_interception_yards @attributes.dig('defense', 'int_yds') end |
#defense_sack ⇒ Object
169 170 171 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 169 def defense_sack @attributes.dig('defense', 'sack') end |
#defense_sack_yards ⇒ Object
173 174 175 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 173 def defense_sack_yards @attributes.dig('defense', 'yds') end |
#defense_safety ⇒ Object
177 178 179 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 177 def defense_safety @attributes.dig('defense', 'sfty') end |
#defense_tackle ⇒ Object
181 182 183 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 181 def defense_tackle @attributes.dig('defense', 'tackle') end |
#defense_tackle_lost ⇒ Object
185 186 187 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 185 def defense_tackle_lost @attributes.dig('defense', 'tlost') end |
#extra_point_attempt ⇒ Object
325 326 327 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 325 def extra_point_attempt @attributes.dig('extra_point', 'att') end |
#extra_point_blocked ⇒ Object
329 330 331 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 329 def extra_point_blocked @attributes.dig('extra_point', 'blk') end |
#extra_point_made ⇒ Object
333 334 335 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 333 def extra_point_made @attributes.dig('extra_point', 'made') end |
#field_goal_attempt ⇒ Object
217 218 219 |
# 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 ⇒ Object
221 222 223 |
# 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 ⇒ Object
225 226 227 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 225 def field_goal_blocked @attributes.dig('field_goal', 'blk') end |
#field_goal_made ⇒ Object
229 230 231 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 229 def field_goal_made @attributes.dig('field_goal', 'made') end |
#field_goal_return ⇒ Object
233 234 235 |
# 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 ⇒ Object
501 502 503 |
# 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 ⇒ Object
509 510 511 |
# 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 ⇒ Object
505 506 507 |
# 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 ⇒ Object
237 238 239 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 237 def field_goal_yards @attributes.dig('field_goal', 'yds') end |
#fumble_category ⇒ Object
413 414 415 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 413 def fumble_category @attributes.dig('fumble', 'category') end |
#fumble_fumble ⇒ Object
417 418 419 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 417 def fumble_fumble @attributes.dig('fumble', 'fum') end |
#fumble_lost ⇒ Object
421 422 423 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 421 def fumble_lost @attributes.dig('fumble', 'lost') end |
#fumble_out_of_bounds ⇒ Object
425 426 427 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 425 def fumble_out_of_bounds @attributes.dig('fumble', 'oob') end |
#fumble_return_category ⇒ Object
429 430 431 |
# 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 ⇒ Object
433 434 435 |
# 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 ⇒ Object
437 438 439 |
# 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 ⇒ Object
441 442 443 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 441 def fumble_return_returned @attributes.dig('fumble_return', 'returns') end |
#fumble_return_touchdown ⇒ Object
445 446 447 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 445 def fumble_return_touchdown @attributes.dig('fumble_return', 'td') end |
#fumble_return_yards ⇒ Object
449 450 451 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 449 def fumble_return_yards @attributes.dig('fumble_return', 'yds') end |
#jersey ⇒ Object
27 28 29 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 27 def jersey @attributes.dig('jersey') end |
#kick_return_fair_catch ⇒ Object
521 522 523 |
# 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 ⇒ Object
513 514 515 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 513 def kick_return_returns @attributes.dig('kick_return', 'returns') end |
#kick_return_touchdown ⇒ Object
525 526 527 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 525 def kick_return_touchdown @attributes.dig('kick_return', 'td') end |
#kick_return_yards ⇒ Object
517 518 519 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 517 def kick_return_yards @attributes.dig('kick_return', 'yds') end |
#kickoffs_endzone ⇒ Object
337 338 339 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 337 def kickoffs_endzone @attributes.dig('kickoffs', 'endzone') end |
#kickoffs_inside_20 ⇒ Object
341 342 343 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 341 def kickoffs_inside_20 @attributes.dig('kickoffs', 'in20') end |
#kickoffs_kicks ⇒ Object
345 346 347 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 345 def kickoffs_kicks @attributes.dig('kickoffs', 'kicks') end |
#kickoffs_net_yards ⇒ Object
349 350 351 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 349 def kickoffs_net_yards @attributes.dig('kickoffs', 'net_yds') end |
#kickoffs_returned ⇒ Object
353 354 355 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 353 def kickoffs_returned @attributes.dig('kickoffs', 'ret') end |
#kickoffs_touchback ⇒ Object
357 358 359 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 357 def kickoffs_touchback @attributes.dig('kickoffs', 'tb') end |
#kickoffs_yards ⇒ Object
361 362 363 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 361 def kickoffs_yards @attributes.dig('kickoffs', 'yds') end |
#name ⇒ Object
31 32 33 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 31 def name @attributes.dig('name') end |
#passing_attempt ⇒ Object
241 242 243 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 241 def passing_attempt @attributes.dig('passing', 'att') end |
#passing_completion ⇒ Object
245 246 247 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 245 def passing_completion @attributes.dig('passing', 'cmp') end |
#passing_first_down ⇒ Object
249 250 251 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 249 def passing_first_down @attributes.dig('passing', 'fd') end |
#passing_interception ⇒ Object
253 254 255 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 253 def passing_interception @attributes.dig('passing', 'int') end |
#passing_red_zone_attempt ⇒ Object
257 258 259 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 257 def passing_red_zone_attempt @attributes.dig('passing', 'rz_att') end |
#passing_sacked ⇒ Object
265 266 267 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 265 def passing_sacked @attributes.dig('passing', 'sk') end |
#passing_sacked_for_yards ⇒ Object
269 270 271 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 269 def passing_sacked_for_yards @attributes.dig('passing', 'sk_yds') end |
#passing_safety ⇒ Object
261 262 263 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 261 def passing_safety @attributes.dig('passing', 'sfty') end |
#passing_touchdown ⇒ Object
273 274 275 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 273 def passing_touchdown @attributes.dig('passing', 'td') end |
#passing_yards ⇒ Object
277 278 279 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 277 def passing_yards @attributes.dig('passing', 'yds') end |
#penalty_abbreviation ⇒ Object
281 282 283 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 281 def penalty_abbreviation @attributes.dig('penalty', 'abbr') end |
#penalty_first_down ⇒ Object
285 286 287 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 285 def penalty_first_down @attributes.dig('penalty', 'fd') end |
#penalty_yards ⇒ Object
289 290 291 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 289 def penalty_yards @attributes.dig('penalty', 'yds') end |
#play_id ⇒ Object
19 20 21 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 19 def play_id @play.id end |
#player_id ⇒ Object
23 24 25 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 23 def player_id @attributes.dig('id') end |
#position ⇒ Object
35 36 37 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 35 def position @attributes.dig('position') end |
#punt_return_fair_catch ⇒ Object
397 398 399 |
# 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 ⇒ Object
401 402 403 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 401 def punt_return_returns @attributes.dig('punt_return', 'returns') end |
#punt_return_touchdown ⇒ Object
405 406 407 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 405 def punt_return_touchdown @attributes.dig('punt_return', 'td') end |
#punt_return_yards ⇒ Object
409 410 411 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 409 def punt_return_yards @attributes.dig('punt_return', 'yds') end |
#punting_blocked ⇒ Object
365 366 367 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 365 def punting_blocked @attributes.dig('punting', 'blk') end |
#punting_inside_20 ⇒ Object
369 370 371 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 369 def punting_inside_20 @attributes.dig('punting', 'in20') end |
#punting_net_yards ⇒ Object
373 374 375 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 373 def punting_net_yards @attributes.dig('punting', 'net_yds') end |
#punting_punts ⇒ Object
377 378 379 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 377 def punting_punts @attributes.dig('punting', 'punts') end |
#punting_returned ⇒ Object
381 382 383 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 381 def punting_returned @attributes.dig('punting', 'ret') end |
#punting_safety ⇒ Object
385 386 387 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 385 def punting_safety @attributes.dig('punting', 'sfty') end |
#punting_touchback ⇒ Object
389 390 391 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 389 def punting_touchback @attributes.dig('punting', 'tb') end |
#punting_yards ⇒ Object
393 394 395 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 393 def punting_yards @attributes.dig('punting', 'yds') end |
#receiving_first_down ⇒ Object
293 294 295 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 293 def receiving_first_down @attributes.dig('receiving', 'fd') end |
#receiving_fumble ⇒ Object
297 298 299 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 297 def receiving_fumble @attributes.dig('receiving', 'fum') end |
#receiving_reception ⇒ Object
301 302 303 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 301 def receiving_reception @attributes.dig('receiving', 'rec') end |
#receiving_red_zone_target ⇒ Object
305 306 307 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 305 def receiving_red_zone_target @attributes.dig('receiving', 'rz_tar') end |
#receiving_target ⇒ Object
309 310 311 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 309 def receiving_target @attributes.dig('receiving', 'tar') end |
#receiving_touchdown ⇒ Object
313 314 315 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 313 def receiving_touchdown @attributes.dig('receiving', 'td') end |
#receiving_yards ⇒ Object
321 322 323 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 321 def receiving_yards @attributes.dig('receiving', 'yds') end |
#receiving_yards_after_catch ⇒ Object
317 318 319 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 317 def receiving_yards_after_catch @attributes.dig('receiving', 'yac') end |
#rushing_first_down ⇒ Object
193 194 195 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 193 def rushing_first_down @attributes.dig('rushing', 'fd') end |
#rushing_fumble ⇒ Object
197 198 199 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 197 def rushing_fumble @attributes.dig('rushing', 'fum') end |
#rushing_red_zone_attempt ⇒ Object
201 202 203 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 201 def rushing_red_zone_attempt @attributes.dig('rushing', 'rz_att') end |
#rushing_rush ⇒ Object
189 190 191 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 189 def rushing_rush @attributes.dig('rushing', 'att') end |
#rushing_safety ⇒ Object
205 206 207 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 205 def rushing_safety @attributes.dig('rushing', 'sfty') end |
#rushing_touchdown ⇒ Object
209 210 211 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 209 def rushing_touchdown @attributes.dig('rushing', 'td') end |
#rushing_yards ⇒ Object
213 214 215 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 213 def rushing_yards @attributes.dig('rushing', 'yds') end |
#stats ⇒ Object
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 |
# 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 ⇒ Object
39 40 41 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 39 def team @attributes.dig('team') end |
#to_s ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 10 def to_s [ team, name, position, stats, ].join(' ') end |
#two_point_conversion_attempt ⇒ Object
453 454 455 |
# 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 ⇒ Object
457 458 459 |
# 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 ⇒ Object
461 462 463 |
# 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 ⇒ Object
465 466 467 |
# 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 ⇒ Object
469 470 471 |
# 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 ⇒ Object
473 474 475 |
# File 'lib/sportradar/nfl/models/play_player_stat.rb', line 473 def two_point_conversion_rush @attributes.dig('two_point_conversion', 'rush') end |