sportradar-api 0.17.6 → 0.18.0
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/competition.rb +6 -2
- data/lib/sportradar/api/odds/market.rb +1 -1
- data/lib/sportradar/api/soccer/api.rb +1 -1
- 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: c1fcf7c9daa2a091b2ad3d09f6b2569ba35f7210003a7398be83490d7aff395c
|
4
|
+
data.tar.gz: ec8d6a527c8be97080cdc78aae7e52f0a9b102fba17f623f9ebc60fc5a723918
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14e7d482a3a4a1b48ed592ca071f341ae20a762855f1cfb58d352820d69bb74fb92bc27dbbdc393339c871c5e166244e695a3a737da9ce82180a6e6a28f3bc78
|
7
|
+
data.tar.gz: 38f8b83c02f842bd1ec02f513115ad646a02a7699d87668e6e03d0b73568b573874b6d13e44a0d9e5ef4e82a6496dd75b6e105a06a0890307be2250e1edab64b
|
data/Gemfile.lock
CHANGED
@@ -2,7 +2,7 @@ module Sportradar
|
|
2
2
|
module Api
|
3
3
|
module Odds
|
4
4
|
class Competition < Data
|
5
|
-
attr_accessor :response, :api, :id, :name, :gender
|
5
|
+
attr_accessor :response, :api, :id, :name, :gender
|
6
6
|
|
7
7
|
|
8
8
|
def initialize(data, **opts)
|
@@ -28,11 +28,15 @@ module Sportradar
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def get_player_props
|
31
|
-
data =
|
31
|
+
data = fetch_player_props
|
32
32
|
create_data(@sport_events_hash, data["competition_sport_events_players_props"], klass: SportEvent, api: api)
|
33
33
|
data
|
34
34
|
end
|
35
35
|
|
36
|
+
def fetch_player_props
|
37
|
+
api.get_data(path_player_props)
|
38
|
+
end
|
39
|
+
|
36
40
|
# url path helpers
|
37
41
|
def path_base
|
38
42
|
"competitions/#{id}"
|
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.
|
4
|
+
version: 0.18.0
|
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-05-
|
11
|
+
date: 2022-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|