sportradar-api 0.13.9 → 0.13.10

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
  SHA1:
3
- metadata.gz: 92f241fc8e16373098db41610201287bb6242c18
4
- data.tar.gz: 2cfd46337bd7742ea42a65ebbc7b99031694f988
3
+ metadata.gz: 5c504d4ea3607fc8ce44da28034d96c43f7fdf8f
4
+ data.tar.gz: 733a6947bcc47373b1e709cd0bb8a07faee871cf
5
5
  SHA512:
6
- metadata.gz: d3728a46b615210784df2fc46eebc4cb66ecb108b6483c17d248c5e8ad23d975558e92313dc9543d678141bc4a6ba1d1a72bd8beb54b9b75232f194e0b39a5db
7
- data.tar.gz: 1b8cc208385091994ae58c6d15a443e1a9dd89ab241b3e1ac601c56cc3bd6b9594f307662661931f39f35090af8c5bff4a5a979d066db685723d951d0a401445
6
+ metadata.gz: bac07583b54cd5be2791e1dc291e09e61e45c4bc2e1d9157eb2080ec63bfe9dabe446cf26f602c6fda23b667d813d3895cd78c000dda806d6d491bf21666eb82
7
+ data.tar.gz: 446bba4593a67af26aba6639f9947d345371d1bad204ac939fa285c276db7adccc9d71dc719d4ea6bc9f908c211b83e661772040fd25d95a02ccb86450dc5f05
@@ -16,7 +16,7 @@ module Sportradar
16
16
  # end
17
17
  # end
18
18
  def self.new(data, **opts)
19
- klass = subclass(data['event_type'])
19
+ klass = subclass(data['event_type']) || Base
20
20
  klass.new(data, **opts)
21
21
  # rescue => e
22
22
  # binding.pry
@@ -2,7 +2,7 @@ module Sportradar
2
2
  module Api
3
3
  module Soccer
4
4
  class Event < Data
5
- attr_reader :id, :type, :time, :period, :period_type, :period_name, :match_time, :team, :x, :y, :outcome, :home_score, :away_score, :goal_scorer, :stoppage_time, :player_out, :player_in, :player
5
+ attr_reader :id, :type, :time, :period, :period_type, :period_name, :match_time, :team, :x, :y, :outcome, :home_score, :away_score, :goal_scorer, :stoppage_time, :player_out, :player_in, :player, :commentaries
6
6
 
7
7
  def initialize(data, **opts)
8
8
  @response = data
@@ -1,5 +1,5 @@
1
1
  module Sportradar
2
2
  module Api
3
- VERSION = "0.13.9"
3
+ VERSION = "0.13.10"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sportradar-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.9
4
+ version: 0.13.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Eggett
@@ -471,7 +471,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
471
471
  version: '0'
472
472
  requirements: []
473
473
  rubyforge_project:
474
- rubygems_version: 2.6.11
474
+ rubygems_version: 2.6.10
475
475
  signing_key:
476
476
  specification_version: 4
477
477
  summary: Sportradar API client