lib/sportradar/api/football/ncaafb/play.rb in sportradar-api-0.11.34 vs lib/sportradar/api/football/ncaafb/play.rb in sportradar-api-0.11.35
- old
+ new
@@ -23,13 +23,13 @@
end
end
def get_details
if @details
- data = @api.get_data(@details).to_h
- update(data)
- data
+ @detailed_data = @api.get_data(@details).to_h
+ update(@detailed_data)
+ @detailed_data
end
end
private
@@ -62,10 +62,10 @@
when /no play/i
nil
when /intercepted/i
:interception
when /fumbles/i
- :fumble
+ self.statistics&.fumble&.first&.lost? && :fumble
when /extra point is good/i
:touchdown
# when missed extra point
when /punts/i
:punt