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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 491fc9afff476b9448cbbc49f2702bb7fbcf72856a2aba39dbbbd52cbc84ef06
4
- data.tar.gz: 87d334147a0df0af6116a638b83435c46a68b2c669d205babe313bcaa4533f7b
3
+ metadata.gz: c1fcf7c9daa2a091b2ad3d09f6b2569ba35f7210003a7398be83490d7aff395c
4
+ data.tar.gz: ec8d6a527c8be97080cdc78aae7e52f0a9b102fba17f623f9ebc60fc5a723918
5
5
  SHA512:
6
- metadata.gz: 280dd430bfd12303e55c9dd19760e08d6e7f7fb75104d81329524a9fe601ebcc4c88c01d57702e59c65cab945c73e4878080f3d085e7694a50ced619ecd71ea0
7
- data.tar.gz: cee1498b5f82bd4dedf3fa8eb63ae4f46290f57c0c93c03c4171980c10d21fd0abac9e5e9e17c81d19d678fbe5b794a432bf9a9ed06be58fe70ac0cd608c4f56
6
+ metadata.gz: 14e7d482a3a4a1b48ed592ca071f341ae20a762855f1cfb58d352820d69bb74fb92bc27dbbdc393339c871c5e166244e695a3a737da9ce82180a6e6a28f3bc78
7
+ data.tar.gz: 38f8b83c02f842bd1ec02f513115ad646a02a7699d87668e6e03d0b73568b573874b6d13e44a0d9e5ef4e82a6496dd75b6e105a06a0890307be2250e1edab64b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sportradar-api (0.17.6)
4
+ sportradar-api (0.18.0)
5
5
  activesupport
6
6
  httparty (>= 0.14.0)
7
7
 
@@ -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, :markets, :futures, :player_props
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 = api.get_data(path_player_props)
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}"
@@ -2,7 +2,7 @@ module Sportradar
2
2
  module Api
3
3
  module Odds
4
4
  class Market < Data
5
- attr_accessor :response, :id, :name
5
+ attr_accessor :response, :id, :name, :player
6
6
 
7
7
 
8
8
  def initialize(data, **opts)
@@ -33,7 +33,7 @@ module Sportradar
33
33
  private
34
34
 
35
35
  def request_url(path)
36
- "/soccer/#{access_level}/v#{version}/#{language_code}/#{path}"
36
+ "/soccer-extended/#{access_level}/v#{version}/#{language_code}/#{path}"
37
37
  end
38
38
 
39
39
  def api_key
@@ -1,5 +1,5 @@
1
1
  module Sportradar
2
2
  module Api
3
- VERSION = "0.17.6"
3
+ VERSION = "0.18.0"
4
4
  end
5
5
  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.17.6
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-23 00:00:00.000000000 Z
11
+ date: 2022-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler