lib/sportradar/api/football/nfl/drive.rb in sportradar-api-0.11.23 vs lib/sportradar/api/football/nfl/drive.rb in sportradar-api-0.11.24
- old
+ new
@@ -10,9 +10,13 @@
create_data(@plays_hash, things['play'], klass: Play, api: api, drive: self) if things['play']
create_data(@events_hash, things['event'], klass: Event, api: api, drive: self) if things['setup']
create_data(@events_hash, things['event'], klass: Event, api: api, drive: self) if things['event']
end
+ def team_id
+ plays.last&.start_situation&.team_id
+ end
+
end
end
end
end
end