lib/sportradar/api/football/play_statistics.rb in sportradar-api-0.11.30 vs lib/sportradar/api/football/play_statistics.rb in sportradar-api-0.11.31
- old
+ new
@@ -158,10 +158,9 @@
end
class PlayFieldGoalStatistics < Data
attr_accessor :attempt, :att_yards, :missed, :yards, :nullified, :blocked, :team, :player
def initialize(data)
- "att"=>1, "made"=>1, "yds"=>17, "att_yds"=>17, "blk"=>0, "ret"=>0}
@response = data
@attempt = data['attempt'] || data['att']
@att_yards = data['att_yards']
@missed = data['missed'] || (data['made'] - 1).abs
@blocked = data['blocked'] || data['blk']
\ No newline at end of file