lib/sportradar/api/nfl/game.rb in sportradar-api-0.1.25 vs lib/sportradar/api/nfl/game.rb in sportradar-api-0.1.26

- old
+ new

@@ -28,11 +28,13 @@ @venue = Sportradar::Api::Nfl::Venue.new data["venue"] if data["venue"] @home = Sportradar::Api::Nfl::Team.new data["home"] if data["home"] @away = Sportradar::Api::Nfl::Team.new data["away"] if data["away"] @broadcast = Sportradar::Api::Nfl::Broadcast.new data["broadcast"] if data["broadcast"] + end - + def current_score + "#{summary.home.points}-#{summary.away.points}" if summary end private def set_scoring_drives