lib/sportradar/api/baseball/pitch.rb in sportradar-api-0.10.30 vs lib/sportradar/api/baseball/pitch.rb in sportradar-api-0.10.31
- old
+ new
@@ -1,10 +1,10 @@
module Sportradar
module Api
module Baseball
class Pitch < Data
- attr_accessor :response, :id, :at_bat, :outcome_id, :status, :count, :is_ab_over, :warming_up, :runners, :errors, :pitch_type_name, :speed, :outcome, :hit_type
+ attr_accessor :response, :id, :at_bat, :outcome_id, :status, :count, :is_ab_over, :warming_up, :runners, :errors, :pitch_type_name, :x, :y, :total_pitch_count, :speed, :outcome, :hit_type,
def initialize(data, **opts)
@response = data
@api = opts[:api]
@at_bat = opts[:at_bat]
@@ -97,10 +97,10 @@
@warming_jersey_number = data['jersey_number']
@warming_up = "#{data['preferred_name'] || data['first_name']} #{data['last_name']}"
end
def parse_steal(data)
-
+
end
{"type"=>"steal", "id"=>"76762fd9-683c-42f2-8c72-8d9fd4f5bc7b", "status"=>"official", "created_at"=>"2017-05-06T02:56:49+00:00", "pitcher"=>{"id"=>"9dd06397-4353-44e8-81bb-6e88a75e42b5"}, "runners"=>[{"id"=>"3e39fe20-6dca-4894-807b-1ce76ff93e29", "starting_base"=>1, "ending_base"=>1, "outcome_id"=>"", "out"=>false, "last_name"=>"Owings", "first_name"=>"Christopher", "preferred_name"=>"Chris", "jersey_number"=>"16"}]}
{"type"=>"steal", "id"=>"df01b116-afcd-467f-9b9c-99d3891629c6", "status"=>"official", "created_at"=>"2017-05-06T03:00:58+00:00", "pitcher"=>{"id"=>"90fb6719-5135-42f3-88c0-0ccde448368c"}, "runners"=>[{"id"=>"106e6fb6-6460-412e-abdb-9f73469a27b9", "starting_base"=>1, "ending_base"=>1, "outcome_id"=>"CK", "out"=>false, "last_name"=>"DeShields", "first_name"=>"Delino", "preferred_name"=>"Delino", "jersey_number"=>"3"}]}