sportradar-api 0.18.0 → 0.18.1

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: c1fcf7c9daa2a091b2ad3d09f6b2569ba35f7210003a7398be83490d7aff395c
4
- data.tar.gz: ec8d6a527c8be97080cdc78aae7e52f0a9b102fba17f623f9ebc60fc5a723918
3
+ metadata.gz: 87396dd744b5483dc483ad40a2210588cfb0740a4492b95925c2bba0281428a6
4
+ data.tar.gz: e0ba45d5bf6a6fcf0bbd9d935c6fe798bd373bb1521422e5116394b4f3d67933
5
5
  SHA512:
6
- metadata.gz: 14e7d482a3a4a1b48ed592ca071f341ae20a762855f1cfb58d352820d69bb74fb92bc27dbbdc393339c871c5e166244e695a3a737da9ce82180a6e6a28f3bc78
7
- data.tar.gz: 38f8b83c02f842bd1ec02f513115ad646a02a7699d87668e6e03d0b73568b573874b6d13e44a0d9e5ef4e82a6496dd75b6e105a06a0890307be2250e1edab64b
6
+ metadata.gz: 2d7af40902d848873622e44b07ba6d67885e080edca30648965be1193d2b0c12bc66f35258a6a7f5808de09d4f0cce5ae1afef725049d0149795ee23ba4633c2
7
+ data.tar.gz: da5f6b58bc802ca07951a31b53e91ad1f13b51bca5246bf244ec9d90b2d570e9103a49d407600a8c569292275be67b3d0afc91143276393ce78c510eea68e989
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sportradar-api (0.18.0)
4
+ sportradar-api (0.18.1)
5
5
  activesupport
6
6
  httparty (>= 0.14.0)
7
7
 
@@ -3,7 +3,7 @@ module Sportradar
3
3
  module Soccer
4
4
  class Player < Data
5
5
 
6
- attr_reader :id, :league_group, :name, :type, :nationality, :country_code, :height, :weight, :jersey_number, :preferred_foot, :stats, :game_stats, :date_of_birth, :matches_played
6
+ attr_reader :id, :league_group, :name, :type, :nationality, :country_code, :height, :weight, :jersey_number, :preferred_foot, :stats, :game_stats, :date_of_birth, :matches_played, :starter
7
7
  alias :position :type
8
8
 
9
9
  def initialize(data = {}, league_group: nil, **opts)
@@ -37,6 +37,8 @@ module Sportradar
37
37
  @preferred_foot = data['preferred_foot'] if data['preferred_foot']
38
38
  @matches_played = data['matches_played'] if data['matches_played']
39
39
  @stats = data['statistics'] if data['statistics']
40
+ @starter = data['starter'] if data.key?('starter')
41
+
40
42
  @date_of_birth = Date.parse(data['date_of_birth']) if data['date_of_birth']
41
43
  set_game_stats(data)
42
44
 
@@ -1,5 +1,5 @@
1
1
  module Sportradar
2
2
  module Api
3
- VERSION = "0.18.0"
3
+ VERSION = "0.18.1"
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.18.0
4
+ version: 0.18.1
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-26 00:00:00.000000000 Z
11
+ date: 2022-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler