sportradar-api 0.11.24 → 0.11.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/sportradar/api/football/play.rb +28 -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: bd9c5c755df4ad320d8db6e1d084b9965a4ecd48
|
|
4
|
+
data.tar.gz: 1c7e3630f5671f9bbb07854b013f495372d694bb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: be3aec970415ad06b58d36144d36c3386d24fd81f05255aed36a1d71fff0bd3bbaacfbdb19f3e7c3156e846bc38abe5bac360e4a26670408e44dbc34d5c7e047
|
|
7
|
+
data.tar.gz: 774a4ffa9f597dcc274773311ae95e4ddfffb53b754c5a245521f090761592b65299dc3381fa0ff23f6a1ed0222f933d0cf54f330614af5ba833e09d46f8cd55
|
data/Gemfile.lock
CHANGED
|
@@ -106,6 +106,34 @@ module Sportradar
|
|
|
106
106
|
end
|
|
107
107
|
end
|
|
108
108
|
|
|
109
|
+
def parse_description_for_drive_end
|
|
110
|
+
parsed_ending = case @description
|
|
111
|
+
when /intercepted/i
|
|
112
|
+
:interception
|
|
113
|
+
when /fumbles/i
|
|
114
|
+
:fumble
|
|
115
|
+
when /extra point is good/i
|
|
116
|
+
:touchdown
|
|
117
|
+
# when missed extra point
|
|
118
|
+
when /punts/i
|
|
119
|
+
:punt
|
|
120
|
+
when /Field Goal is No Good. blocked/i
|
|
121
|
+
:fg
|
|
122
|
+
when /Field Goal is No Good/i
|
|
123
|
+
:fg
|
|
124
|
+
# when missed field goal
|
|
125
|
+
when /Field Goal is Good/i
|
|
126
|
+
:fg
|
|
127
|
+
when "End of 1st Half"
|
|
128
|
+
:end_of_half
|
|
129
|
+
else
|
|
130
|
+
#
|
|
131
|
+
end
|
|
132
|
+
if parsed_ending
|
|
133
|
+
parsed_ending
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
|
|
109
137
|
def parse_player
|
|
110
138
|
# TODO: Currently there is an issue where we are only mapping one player_id to a play, but there are plays with multiple players involved.
|
|
111
139
|
play_stats = @statistics.penalty || @statistics.rush || @statistics.return || @statistics.receive
|