lib/sportradar/api/football/ncaafb/play.rb in sportradar-api-0.11.23 vs lib/sportradar/api/football/ncaafb/play.rb in sportradar-api-0.11.24
- old
+ new
@@ -3,14 +3,10 @@
module Football
class Ncaafb
class Play < Sportradar::Api::Football::Play
- def parsed_ending
- @parsed_ending ||= search_for_drive_end
- end
-
def counted_play?
['rush', 'pass'].include?(self.play_type) && !self.description.include?('No Play')
end
def halftime?
@@ -32,31 +28,31 @@
end
end
private
- def search_for_drive_end
- case @play_type
- when 'kick'
- nil
- when 'rush'
- # check for fumble
- parse_description_for_drive_end
- when 'pass'
- # check for fumble/interception
- parse_description_for_drive_end
- when 'punt'
- :punt
- when 'penalty'
- nil
- when 'fieldgoal'
- :fg
- when 'extrapoint'
- :pat
- else
- parse_description_for_drive_end
- end
- end
+ # def search_for_drive_end
+ # case @play_type
+ # when 'kick'
+ # nil
+ # when 'rush'
+ # # check for fumble
+ # parse_description_for_drive_end
+ # when 'pass'
+ # # check for fumble/interception
+ # parse_description_for_drive_end
+ # when 'punt'
+ # :punt
+ # when 'penalty'
+ # nil
+ # when 'fieldgoal'
+ # :fg
+ # when 'extrapoint'
+ # :pat
+ # else
+ # parse_description_for_drive_end
+ # end
+ # end
# ["kick", "rush", "pass", "punt", "penalty", nil, "fieldgoal", "extrapoint"]
def parse_description_for_drive_end
parsed_ending = case @description
when /intercepted/i