sportradar-api 0.10.50 → 0.10.51

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: 985ff6ef0fee07e2e2d0e0fd7c4a2c4b11b23429
4
- data.tar.gz: b9d95dcf94938b627914dcacc9c96f2419316a38
3
+ metadata.gz: c83f36ec97d3039c68554595282ddd64e0c961df
4
+ data.tar.gz: 4874902fe31a284652c7800f189e0c6327d6a202
5
5
  SHA512:
6
- metadata.gz: b30db7eef0d04fb1f8100041e7131e2d191923fa0d7c5d82bcd831314dc71a02b519ad4dfd7db68bbf6479b5b0757620928996209572a154ee893afdbb8cf14c
7
- data.tar.gz: 50f329ee65c656712d267eae22e815b768af1a4213576c0a424a4e7f2c621b16e5727b48f78bfb16ea8866db1015b7a5d0cc1891a6c49c77f0e9990171a3fb0a
6
+ metadata.gz: 99ba32b8853928195fb8f011ac710e51661a97e3d21f376ddbe67ddb6319c99d525d771362d8ed2137025d1a38f3b144425a4bca7db9ff6f366e2d0aadd2d349
7
+ data.tar.gz: 4b13628db4f66a2bf1937865036fcad1dffe36d2f214ac4380dc93607731e237852ae2090c8047afc699ac5f61a65b70c4e3151e08ad2595ddbcdc0db93069ca
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sportradar-api (0.10.50)
4
+ sportradar-api (0.10.51)
5
5
  activesupport
6
6
  httparty (>= 0.14.0)
7
7
 
@@ -3,7 +3,7 @@ module Sportradar
3
3
  module Baseball
4
4
  class Event
5
5
  class AtBat < Data
6
- attr_accessor :response, :id, :event, :hitter_id, :outcome, :description
6
+ attr_accessor :response, :id, :event, :hitter_id, :hitter_hand, :pitcher_id, :pitcher_hand, :outcome, :description
7
7
 
8
8
  def initialize(data, **opts)
9
9
  @response = data
@@ -58,6 +58,8 @@ module Sportradar
58
58
  @description = data['description'] if data['description']
59
59
  @hitter_id = data['hitter_id'] if data['hitter_id']
60
60
  @pitcher_id = data['pitcher_id'] if data['pitcher_id']
61
+ @hitter_hand = data['hitter_hand'] if data['hitter_hand']
62
+ @pitcher_hand = data['pitcher_hand'] if data['pitcher_hand']
61
63
  # this hasn't been checked yet
62
64
  # pitch events
63
65
  pitches = data.dig('events').select {|pitch| pitch["type"] == 'pitch' }
@@ -1,5 +1,5 @@
1
1
  module Sportradar
2
2
  module Api
3
- VERSION = "0.10.50"
3
+ VERSION = "0.10.51"
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.10.50
4
+ version: 0.10.51
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Eggett
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-19 00:00:00.000000000 Z
11
+ date: 2017-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler