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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/sportradar/api/baseball/events/at_bat.rb +3 -1
- data/lib/sportradar/api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c83f36ec97d3039c68554595282ddd64e0c961df
|
4
|
+
data.tar.gz: 4874902fe31a284652c7800f189e0c6327d6a202
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99ba32b8853928195fb8f011ac710e51661a97e3d21f376ddbe67ddb6319c99d525d771362d8ed2137025d1a38f3b144425a4bca7db9ff6f366e2d0aadd2d349
|
7
|
+
data.tar.gz: 4b13628db4f66a2bf1937865036fcad1dffe36d2f214ac4380dc93607731e237852ae2090c8047afc699ac5f61a65b70c4e3151e08ad2595ddbcdc0db93069ca
|
data/Gemfile.lock
CHANGED
@@ -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' }
|
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.
|
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-
|
11
|
+
date: 2017-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|