lib/sportradar/api/basketball/plays/turnover.rb in sportradar-api-0.9.59 vs lib/sportradar/api/basketball/plays/turnover.rb in sportradar-api-0.10.0
- old
+ new
@@ -9,10 +9,10 @@
def display_type
'Turnover'
end
def parse_statistics(data)
super
- @steal = Steal.new(data, quarter: @quarter) if @statistics['steal']
+ @steal = Steal.new(data, quarter: @quarter, half: @half) if @statistics.detect { |hash| hash['type'] == 'steal' }
end
end
end
end
end