sportradar-api 0.11.41 → 0.11.42
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/sportradar/api/football/drive.rb +6 -2
- data/lib/sportradar/api/football/ncaafb/play.rb +10 -0
- data/lib/sportradar/api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c4a934a7cdc80279bc69a712a8f2985fdeafeca
|
4
|
+
data.tar.gz: c7fb271d44ad96385aaf5a8f063f0b3fd2463389
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58bab309da3fc9902fa0e62cd1e4422a2e2b5c85e191477f05109e8d1ffeed8ee5e06728ae1723c8cc8a1d58c012c93cf6d44992170ce4f701b2808ede58862b
|
7
|
+
data.tar.gz: 9cf2f77331f6d4c413b4e6292f32651e40e40c80198a96490aae0922637f4e28c484af5a364a44699556bc7bc9d58d0f178fe9870474d18d2e387212f3c57ea9
|
data/Gemfile.lock
CHANGED
@@ -95,14 +95,18 @@ module Sportradar
|
|
95
95
|
case end_reason
|
96
96
|
when 'Touchdown', :pat
|
97
97
|
'Touchdown'
|
98
|
-
when 'Field Goal', 'Missed FG', "Blocked FG, Downs", 'Muffed FG',
|
98
|
+
when 'Field Goal', 'Missed FG', "Blocked FG, Downs", 'Muffed FG', :fg
|
99
99
|
'Field Goal'
|
100
100
|
when 'Downs'
|
101
101
|
'Downs'
|
102
102
|
when 'Interception', 'Fumble', :fumble, :interception
|
103
103
|
'Turnover'
|
104
|
-
when 'Punt', :punt
|
104
|
+
when 'Punt', 'Blocked Punt, Downs', 'Blocked Punt, Safety', :punt
|
105
105
|
'Punt'
|
106
|
+
when 'End of Half', 'End of Game'
|
107
|
+
end_reason
|
108
|
+
when 'Safety', 'Blocked FG, Safety'
|
109
|
+
'Safety'
|
106
110
|
else
|
107
111
|
'Other'
|
108
112
|
end
|
@@ -4,6 +4,16 @@ module Sportradar
|
|
4
4
|
class Ncaafb
|
5
5
|
class Play < Sportradar::Api::Football::Play
|
6
6
|
|
7
|
+
def play_type
|
8
|
+
if @play_type == 'Kick'
|
9
|
+
'Kickoff'
|
10
|
+
elsif @play_type == 'ExtraPoint'
|
11
|
+
'Extra Point'
|
12
|
+
else
|
13
|
+
super
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
7
17
|
def yards
|
8
18
|
(counted_play? && (statistics.pass&.first || statistics.rush&.first)&.yards).to_i
|
9
19
|
end
|