sportradar-api 0.20.0 → 0.20.2
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/odds/api.rb +1 -1
- data/lib/sportradar/api/odds/competition.rb +2 -2
- data/lib/sportradar/api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 842d41517346b22c3cb540f9132a514dff1baa8c256d04f013df6e560faf06f6
|
4
|
+
data.tar.gz: b815a45030f676ba70be4fce250b5e0a08aaa37c2e3f44b3324d9faeaef709df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5e73668cb8586e14ef06ee7b4844f1e134dead13d4258f76c3ed911c8f562ca6b05c809a91633fde56b85a4b4d3d1752ed13e354ec8564014d13b12d9c0a585
|
7
|
+
data.tar.gz: 0d56e21705c97697741d8ca42d1c58b0310b720b44710d11bc5f3639db638c018e790471c52cbdeab77601f59b27a36aee93bdd5fc2becd4663ed3234c68a146
|
data/Gemfile.lock
CHANGED
@@ -4,7 +4,7 @@ module Sportradar
|
|
4
4
|
class Api < Request
|
5
5
|
attr_accessor :access_level, :language_code, :error, :base_path
|
6
6
|
|
7
|
-
def initialize(base_path
|
7
|
+
def initialize(base_path:, access_level: default_access_level, language_code: 'en', **args)
|
8
8
|
@language_code = language_code
|
9
9
|
@access_level = access_level
|
10
10
|
@base_path = base_path
|
@@ -29,9 +29,9 @@ module Sportradar
|
|
29
29
|
|
30
30
|
def get_player_props
|
31
31
|
prop_data = fetch_player_props.fetch('competition_sport_events_players_props', [])
|
32
|
-
if prop_data.size
|
32
|
+
if prop_data.size > 0
|
33
33
|
new_data = prop_data
|
34
|
-
while new_data.size
|
34
|
+
while new_data.size > 0
|
35
35
|
new_data = fetch_player_props(start: prop_data.size).fetch('competition_sport_events_players_props', [])
|
36
36
|
prop_data += new_data
|
37
37
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sportradar-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.20.
|
4
|
+
version: 0.20.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Eggett
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|