lib/sportradar/api/baseball/lineup.rb in sportradar-api-0.17.0.pre vs lib/sportradar/api/baseball/lineup.rb in sportradar-api-0.17.0
- old
+ new
@@ -26,9 +26,17 @@
initialize_home
initialize_away
end
end
+ def full_home
+ @home_team_lineup
+ end
+
+ def full_away
+ @away_team_lineup
+ end
+
def update_from_lineup_event(data)
if data.dig('team_id') == game.home_id
update_home(data, data.dig('order'))
elsif data.dig('team_id') == game.away_id
update_away(data, data.dig('order'))