class Sportradar::Nfl::Models::Play
Public Class Methods
new(drive:, attributes:)
click to toggle source
# File lib/sportradar/nfl/models/play.rb, line 5 def initialize(drive:, attributes:) @drive = drive @attributes = attributes end
Public Instance Methods
clock()
click to toggle source
# File lib/sportradar/nfl/models/play.rb, line 34 def clock @attributes['clock'] end
details()
click to toggle source
# File lib/sportradar/nfl/models/play.rb, line 42 def details @attributes['details'] end
direction()
click to toggle source
# File lib/sportradar/nfl/models/play.rb, line 86 def direction @attributes['direction'] end
distance()
click to toggle source
# File lib/sportradar/nfl/models/play.rb, line 90 def distance @attributes['distance'] end
down()
click to toggle source
# File lib/sportradar/nfl/models/play.rb, line 46 def down @attributes['down'] end
drive_id()
click to toggle source
# File lib/sportradar/nfl/models/play.rb, line 22 def drive_id @drive.id end
formation()
click to toggle source
# File lib/sportradar/nfl/models/play.rb, line 94 def formation @attributes['formation'] end
game_id()
click to toggle source
# File lib/sportradar/nfl/models/play.rb, line 14 def game_id @drive.game_id end
id()
click to toggle source
# File lib/sportradar/nfl/models/play.rb, line 38 def id @attributes['id'] end
official?()
click to toggle source
# File lib/sportradar/nfl/models/play.rb, line 98 def official? @attributes['official'] end
participants()
click to toggle source
# File lib/sportradar/nfl/models/play.rb, line 50 def participants @attributes['participants'] end
play_type()
click to toggle source
# File lib/sportradar/nfl/models/play.rb, line 54 def play_type @attributes['play_type'] end
quarter()
click to toggle source
# File lib/sportradar/nfl/models/play.rb, line 26 def quarter @drive.quarter end
quarter_number()
click to toggle source
# File lib/sportradar/nfl/models/play.rb, line 30 def quarter_number quarter.number end
sequence()
click to toggle source
# File lib/sportradar/nfl/models/play.rb, line 58 def sequence @attributes['sequence'] end
side()
click to toggle source
# File lib/sportradar/nfl/models/play.rb, line 62 def side @attributes['side'] end
summary()
click to toggle source
# File lib/sportradar/nfl/models/play.rb, line 66 def summary @attributes['summary'] end
team()
click to toggle source
# File lib/sportradar/nfl/models/play.rb, line 18 def team @drive.team end
to_s()
click to toggle source
# File lib/sportradar/nfl/models/play.rb, line 10 def to_s summary end
type()
click to toggle source
# File lib/sportradar/nfl/models/play.rb, line 70 def type @attributes['type'] end
updated_at()
click to toggle source
# File lib/sportradar/nfl/models/play.rb, line 74 def updated_at @attributes['updated'] end
yard_line()
click to toggle source
# File lib/sportradar/nfl/models/play.rb, line 78 def yard_line @attributes['yard_line'] end
yards_to_first_down()
click to toggle source
# File lib/sportradar/nfl/models/play.rb, line 82 def yards_to_first_down @attributes['yfd'] end